<variance>
<variance>
is a Math Operator
component that renders the variance of a list of enclosed data values according to the equation:
In this equation, represents
the <mean>
of the sample and the number of data points. By default, the sample variance is
calculated. If instead, the population
attribute is specified as “true”, the equation
becomes:
Attributes and Properties
Attribute | Type | Values |
---|---|---|
anchor = "…" | point | |
createIntervals = "…" | boolean | "true" "false" |
createVectors = "…" | boolean | "true" "false" |
displayBlanks = "…" | boolean | "true" "false" |
displayDecimals = "…" | integer | |
displayDigits = "…" | integer | |
displaySmallAsZero = "…" | number | |
draggable = "…" | boolean | "true" "false" |
expand = "…" | boolean | "true" "false" |
forceNumeric = "…" | boolean | "true" "false" |
forceSymbolic = "…" | boolean | "true" "false" |
format = "…" | text | "text" "latex" |
functionSymbols = "…" | textList | |
layer = "…" | number | |
padZeros = "…" | boolean | "true" "false" |
parseScientificNotation = "…" | boolean | "true" "false" |
population = "…" | boolean | "true" "false" |
positionFromAnchor = "…" | text | "upperright" "upperleft" "lowerright" "lowerleft" "top" "bottom" "left" "right" "center" |
referencesAreFunctionSymbols = "…" | ||
renderMode = "…" | text | |
simplify = "…" | text | "none" "full" "numbers" "numberspreserveorder" |
splitSymbols = "…" | boolean | "true" "false" |
unordered = "…" | boolean | "true" "false" |
Property | Type |
---|---|
$v.anchor | point |
$v.backgroundColor | text |
$v.createIntervals | boolean |
$v.createVectors | boolean |
$v.disabled | boolean |
$v.displayBlanks | boolean |
$v.displayDecimals | integer |
$v.displayDigits | integer |
$v.displaySmallAsZero | number |
$v.draggable | boolean |
$v.expand | boolean |
$v.fixed | boolean |
$v.fixLocation | boolean |
$v.forceNumeric | boolean |
$v.forceSymbolic | boolean |
$v.format | text |
$v.functionSymbols | textList |
$v.hidden | boolean |
$v.isNumber | boolean |
$v.isNumeric | boolean |
$v.latex | latex |
$v.layer | number |
$v.list | [ math ] |
$v.matrix | [ math ] |
$v.matrixSize | numberList |
$v.number | number |
$v.numColumns | integer |
$v.numDimensions | integer |
$v.numListItems | integer |
$v.numRows | integer |
$v.padZeros | boolean |
$v.parseScientificNotation | boolean |
$v.population | boolean |
$v.positionFromAnchor | text |
$v.renderMode | text |
$v.simplify | text |
$v.splitSymbols | boolean |
$v.text | text |
$v.textColor | text |
$v.textStyleDescription | text |
$v.unordered | boolean |
$v.value | variance |
$v.vector | [ math ] |
$v.x | math |
$v.y | math |
$v.z | math |
Example: <variance>
of a nested list of numbers
The <variance>
component renders the variance of a list of numbers separated by spaces.
Example: <variance>
of a named list
The <variance>
component renders the variance of a named <numberList>
.
Example: <variance>
of a user-input list
Since there is no numberInput component, the <mathInput>
is used to store a user’s numerical list. This
must then be defined as a <numberList>
. The named <numberList>
is then referenced by
the <variance>
component to compute the numerical variance.