* 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 * ```
()
| 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. |