PHP Class MCordingley\Regression\Observations

Inheritance: implements Countabl\Countable, implements IteratorAggregat\IteratorAggregate
Exibir arquivo Open project: mcordingley/regression Class Usage Examples

Public Methods

Method Description
add ( array $features, float $outcome ) : self
addObservation ( Observation $observation ) : self
count ( ) : integer
fromArray ( array $features, array $outcomes ) : self
getFeatureCount ( ) : integer
getFeatures ( ) : array
getIterator ( ) : Traversable
getObservation ( integer $index ) : Observation
getOutcomes ( ) : array

Method Details

add() public method

public add ( array $features, float $outcome ) : self
$features array
$outcome float
return self

addObservation() public method

public addObservation ( Observation $observation ) : self
$observation Observation
return self

count() public method

public count ( ) : integer
return integer

fromArray() public static method

public static fromArray ( array $features, array $outcomes ) : self
$features array
$outcomes array
return self

getFeatureCount() public method

public getFeatureCount ( ) : integer
return integer

getFeatures() public method

public getFeatures ( ) : array
return array

getIterator() public method

public getIterator ( ) : Traversable
return Traversable

getObservation() public method

public getObservation ( integer $index ) : Observation
$index integer
return Observation

getOutcomes() public method

public getOutcomes ( ) : array
return array