Class: Cicada::DistributionFitter
- Inherits:
-
Object
- Object
- Cicada::DistributionFitter
- Defined in:
- lib/cicada/fitting/p3d_fitter.rb
Overview
Interface for a class that fits a set of scalars with associated image object to some distribution.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Instance Method Summary collapse
-
#fit(objects, diffs) ⇒ Array<Numeric>
Fits the data with associated image objects to the distribution.
-
#initialize(params) ⇒ DistributionFitter
constructor
Constructs a new distribution fitter from specified parameters.
Constructor Details
#initialize(params) ⇒ DistributionFitter
Constructs a new distribution fitter from specified parameters. Derived classes should indicate which parameters are used.
44 45 46 |
# File 'lib/cicada/fitting/p3d_fitter.rb', line 44 def initialize(params) @parameters = params end |
Instance Attribute Details
#parameters ⇒ Object
Returns the value of attribute parameters.
36 37 38 |
# File 'lib/cicada/fitting/p3d_fitter.rb', line 36 def parameters @parameters end |
Instance Method Details
#fit(objects, diffs) ⇒ Array<Numeric>
Fits the data with associated image objects to the distribution.
Abstract
59 60 61 |
# File 'lib/cicada/fitting/p3d_fitter.rb', line 59 def fit(objects, diffs) nil end |