C# Class HoloToolkit.Unity.VectorRollingStatistics

Show file Open project: Microsoft/HoloToolkit-Unity

Public Properties

Property Type Description
ActualSampleCount float
Average UnityEngine.Vector3
CurrentStandardDeviation float
StandardDeviationDeltaAfterLatestSample float
StandardDeviationsAwayOfLatestSample float

Public Methods

Method Description
AddSample ( Vector3 value ) : void

Adds a new sample to the sample list and updates the stats.

Init ( int sampleCount ) : void

Initialize the rolling stats.

Reset ( ) : void

Resets the stats to zero.

Method Details

AddSample() public method

Adds a new sample to the sample list and updates the stats.
public AddSample ( Vector3 value ) : void
value UnityEngine.Vector3 The new sample to add
return void

Init() public method

Initialize the rolling stats.
public Init ( int sampleCount ) : void
sampleCount int
return void

Reset() public method

Resets the stats to zero.
public Reset ( ) : void
return void

Property Details

ActualSampleCount public property

The number of samples in the current set (may be 0 - maxSamples)
public float ActualSampleCount
return float

Average public property

The average position.
public Vector3,UnityEngine Average
return UnityEngine.Vector3

CurrentStandardDeviation public property

Current standard deviation of the positions of the vectors
public float CurrentStandardDeviation
return float

StandardDeviationDeltaAfterLatestSample public property

Difference to standardDeviation when the latest sample was added.
public float StandardDeviationDeltaAfterLatestSample
return float

StandardDeviationsAwayOfLatestSample public property

How many standard deviations the latest sample was away.
public float StandardDeviationsAwayOfLatestSample
return float