Samsara\Fermat\Core\Types > NumberCollection
No description available
Inheritance
Implements
NumberCollectionInterface
NumberCollectionInterface
- namespace
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups
- description
No description available
ArrayAccess
ArrayAccess
- namespace
- description
No description available
IteratorAggregate
IteratorAggregate
- namespace
- description
No description available
Traversable
Traversable
- namespace
- description
No description available
Methods
Constructor
public NumberCollection->__construct(array $numbers)
__construct
$numbers
- type
- array
- description
return
- type
- mixed (assumed)
- description
- No description available
__construct() Description:
NumberCollection constructor.
Instanced Methods
public NumberCollection->get(int $key)
get
$key
- type
- int
- description
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->getIterator()
getIterator
return
- type
- Traversable
- description
- No description available
public NumberCollection->getRandom()
getRandom
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->add($number)
add
$number
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->average()
average
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->collect(array $numbers)
collect
$numbers
- type
- array
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->count()
count
return
- type
- int
- description
- No description available
public NumberCollection->divide($number)
divide
$number
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->exp($base)
exp
$base
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
exp() Description:
Replaces each element in the collection with $base to the power of that value. If no base is given, Euler's number is assumed to be the base (as is assumed in most cases where an exp() function is encountered in math)
public NumberCollection->filterByKeys(array $filters)
filterByKeys
$filters
- type
- array
- description
return
- type
- Samsara\Fermat\Core\Types\NumberCollection
- description
- No description available
public NumberCollection->makeExponentialDistribution()
makeExponentialDistribution
return
- type
- Samsara\Fermat\Stats\Distribution\Continuous\Exponential
- description
- No description available
public NumberCollection->makeNormalDistribution()
makeNormalDistribution
return
- type
- Samsara\Fermat\Stats\Distribution\Continuous\Normal
- description
- No description available
public NumberCollection->makePoissonDistribution()
makePoissonDistribution
return
- type
- Samsara\Fermat\Stats\Distribution\Discrete\Poisson
- description
- No description available
public NumberCollection->makePolynomialFunction()
makePolynomialFunction
return
- type
- Samsara\Fermat\Expressions\Values\Algebra\PolynomialFunction
- description
- No description available
public NumberCollection->mean()
mean
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->multiply($number)
multiply
$number
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->offsetExists($offset)
offsetExists
$offset
- description
return
- type
- bool
- description
- No description available
public NumberCollection->offsetGet($offset)
offsetGet
$offset
- description
return
- type
- mixed
- description
- No description available
public NumberCollection->offsetSet($offset, $value)
offsetSet
$offset
- description
- No description available
$value
- description
return
- type
- void
- description
- No description available
public NumberCollection->offsetUnset($offset)
offsetUnset
$offset
- description
return
- type
- void
- description
- No description available
public NumberCollection->pop()
pop
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->pow($number)
pow
$number
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
pow() Description:
Raises each element in the collection to the exponent $number
public NumberCollection->push(ImmutableDecimal $number)
push
$number
- type
- ImmutableDecimal
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->reverse()
reverse
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->selectScale()
selectScale
return
- type
- int
- description
- No description available
public NumberCollection->shift()
shift
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->sort()
sort
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->subtract($number)
subtract
$number
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available
public NumberCollection->sum()
sum
return
- type
- Samsara\Fermat\Core\Values\ImmutableDecimal
- description
- No description available
public NumberCollection->toArray()
toArray
return
- type
- array
- description
- No description available
public NumberCollection->unshift(ImmutableDecimal $number)
unshift
$number
- type
- ImmutableDecimal
- description
return
- type
- Samsara\Fermat\Core\Types\Base\Interfaces\Groups\NumberCollectionInterface
- description
- No description available