jacinle.utils.numeric#
Functions
|
Divide n by d and round up. |
|
A mean function that returns the default value when the input is empty. |
|
A product function that returns the default value when the input is empty. |
|
A root mean square function that returns the default value when the input is empty. |
|
A safe sum function that uses the first value as the initial value. |
|
A standard deviation function that returns the default value when the input is empty. |
Functions
- mean(values, default=0)[source]#
A mean function that returns the default value when the input is empty.
- prod(values, default=1)[source]#
A product function that returns the default value when the input is empty.
- rms(values, default=0)[source]#
A root mean square function that returns the default value when the input is empty.