MCPcopy Index your code
hub / github.com/javascriptdata/danfojs / var

Method var

src/danfojs-base/core/series.ts:730–733  ·  view source on GitHub ↗

* Return unbiased variance of elements in a Series. * @example * ``` * const sf = new Series([1, 2, 3, 4, 5, 6]); * console.log(sf.var()); * //output 3.5 * ```

()

Source from the content-addressed store, hash-verified

728 * ```
729 */
730 var(): number {
731 const values = this.$checkAndCleanValues(this.values as ArrayType1D, "max")
732 return variance(values);
733 }
734
735 /**
736 * Return a boolean same-sized object indicating where elements are NaN.

Callers 1

describeMethod · 0.95

Calls 1

$checkAndCleanValuesMethod · 0.95

Tested by 1

describeMethod · 0.76