Function reference · Statistics
smpvar
Computes the sample variance.
smpvar divides the sum of squared deviations by n-1 instead of n. It is the Nerdamer Notation name for the sampleVariance function exported from nerdamer/statistics.
Examples
These examples use Nerdamer Notation.
Compute the sample variance.
smpvar(1,2,3)
// → 1Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
smpvar(arg1, ...)
nerdamer.smpvar
Call the operation through the default nerdamer import.
nerdamer.smpvar(...args: StatisticsInput[]): Expression
Parameters
| Name | Type | Description |
|---|---|---|
args | StatisticsInput[] | — |
Returns
Direct JavaScript / TypeScript API
Import the operation directly from its package entry point.
import { smpvar } from 'nerdamer/statistics';
(...args: StatisticsInput[]): Expression
Parameters
| Name | Type | Description |
|---|---|---|
args | StatisticsInput[] | — |
