Class VectorRollingStatistics
Vector Statistics used in gaze stabilization.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Physics
Assembly: cs.temp.dll.dll
Syntax
public class VectorRollingStatistics
Properties
ActualSampleCount
The number of samples in the current set (may be 0 - maxSamples)
Declaration
public float ActualSampleCount { get; }
Property Value
Type | Description |
---|---|
Single |
Average
The average position.
Declaration
public Vector3 Average { get; }
Property Value
Type | Description |
---|---|
Vector3 |
CurrentStandardDeviation
Current standard deviation of the positions of the vectors.
Declaration
public float CurrentStandardDeviation { get; }
Property Value
Type | Description |
---|---|
Single |
StandardDeviationDeltaAfterLatestSample
Difference to standardDeviation when the latest sample was added.
Declaration
public float StandardDeviationDeltaAfterLatestSample { get; }
Property Value
Type | Description |
---|---|
Single |
StandardDeviationsAwayOfLatestSample
How many standard deviations the latest sample was away.
Declaration
public float StandardDeviationsAwayOfLatestSample { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
AddSample(Vector3)
Adds a new sample to the sample list and updates the stats.
Declaration
public void AddSample(Vector3 value)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | value | The new sample to add |
Init(Int32)
Initialize the rolling stats.
Declaration
public void Init(int sampleCount)
Parameters
Type | Name | Description |
---|---|---|
Int32 | sampleCount |
Reset()
Resets the stats to zero.
Declaration
public void Reset()