search for: shape3

Displaying 2 results from an estimated 2 matches for "shape3".

Did you mean: shape
2007 Dec 06
0
has_many :through with a has_one source
...d class Shape < ActiveRecord::Base has_one :color end class Color < ActiveRecord::Base end container = Container.create! :name => "Container 1" shape1 = container.shapes.create! :name => "Shape 1" shape2 = container.shapes.create! :name => "Shape 2" shape3 = container.shapes.create! :name => "Shape 3" shape1.create_color :name => "Color 1" puts container.colors.inspect reflection.rb:191 check and makes sure the source is either a belongs_to or has_many... Why is has_one excluded? --~--~---------~--~----~------------~------...
2010 Jan 12
1
Strange behavior when trying to piggyback off of "fitdistr"
...t;) && is.null(start)) { m <- mean(x) v <- var (x) tau <- 1 beta <- 2 alpha <- max(((v+m^2)*beta)/(v*beta-m^2),2.1) theta <- (alpha-1)*m/beta start <- list(shape1 = alpha, shape2 = beta, shape3 = tau, scale = theta) start <- start[!is.element(names(start), dots)] } if (distname == "burr" && is.null(start)) { m <- mean(x) start <- list(shape1 = 3, shape2= .5, scale = m) start <- start[!is.element...