Module: Pest::Estimator
- Included in:
- Frequency
- Defined in:
- lib/pest/estimator.rb
Defined Under Namespace
Modules: Distribution
Classes: DistributionList, Frequency
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
2
3
4
|
# File 'lib/pest/estimator.rb', line 2
def data
@data
end
|
Instance Method Details
#distributions ⇒ Object
12
13
14
|
# File 'lib/pest/estimator.rb', line 12
def distributions
@distributions ||= DistributionList.new(self)
end
|
#initialize(data = nil) ⇒ Object
4
5
6
|
# File 'lib/pest/estimator.rb', line 4
def initialize(data=nil)
@data = data
end
|
#variables ⇒ Object
8
9
10
|
# File 'lib/pest/estimator.rb', line 8
def variables
@data.nil? ? {} : @data.variables
end
|