Interface MathApi
-
oroboros\core\interfaces\api\MathApi
implements
oroboros\core\interfaces\api\LibraryApi
Methods summary
public static
integer
|
#
square( type $int )
Returns an integer squared.
Returns an integer squared.
Parameters
Returns
integer
|
public static
|
#
cube( type $int )
Returns an integer cubed.
Returns an integer cubed.
Parameters
Returns
$int
|
public static
integer
|
#
powerof( integer $int, integer $power )
Returns an integer [$int] to the power of [$power].
Returns an integer [$int] to the power of [$power].
Parameters
Returns
integer
|
public static
integer
|
#
median( array $values )
Returns the median value of the supplied array.
Returns the median value of the supplied array.
Parameters
- $values
- An array of integers. String values will be cast to double.
Returns
integer
|
public static
integer
|
#
mean( array $values )
Returns the mean (average) value of the supplied array.
Returns the mean (average) value of the supplied array.
Parameters
- $values
- An array of integers. String values will be cast to double.
Returns
integer
|
public static
integer
|
#
mode( array $values,… )
Returns the mode value of the supplied array.
Returns the mode value of the supplied array.
Parameters
- $values,…
- An array of integers.
Returns
integer
|
public static
integer
|
#
range( array $values,… )
Returns the range value of the supplied array.
Returns the range value of the supplied array.
Parameters
- $values,…
- An array of integers.
Returns
integer
|