HoloLens 2 Gait Training
The purpose of this project is to create gait training application.
Loading...
Searching...
No Matches
WhiteNoise Class Reference

Handle the Random (White) Noise. More...

Inheritance diagram for WhiteNoise:
Inheritance graph
Collaboration diagram for WhiteNoise:
Collaboration graph

Public Member Functions

override void GenerateNewDistribution ()
 Generate a new normal(Gaussian) distribution Mapped to NoiseDataPanel NewDistribution button. More...
 
override void ApplyPattern ()
 Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button. More...
 
- Public Member Functions inherited from BaseNoiseClass
abstract void ApplyPattern ()
 Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button. More...
 
virtual void GenerateNewDistribution ()
 Generate a new normal(Gaussian) distribution Mapped to NoiseDataPanel NewDistribution button. More...
 
virtual void CanclePattern ()
 Cancel the current noise pattern and reset it with default speed. Mapped to NoiseDataPanel CancelPattern button. More...
 

Protected Member Functions

override void Awake ()
 Extend the base class initializations. More...
 
override void CalculateBaseNoise ()
 Calculate the white/random noise. More...
 
override void CalculateNoise ()
 Scale the base Random/White noise. More...
 
- Protected Member Functions inherited from BaseNoiseClass
virtual void Awake ()
 When invoke the scripts performas all the initializations including, Lists, scripts, and noise scaling values such as standard distribution and mean. More...
 
void InitializeNoiseDataPanelObjects ()
 Cache the references of NoiseDataPanel gameobjects. More...
 
double GetStandardDeviation (ref List< float > basePinkNoiseList)
 This function calculate the sample Standard Deviation value and return it. More...
 
void ConvertToZScore (ref List< float > basePinkNoiseList)
 This converts Z values to Z Score values. May get off a small amount due to round error. More...
 
abstract void CalculateNoise ()
 Calculate the colored noise More...
 
abstract void CalculateBaseNoise ()
 Calculate the base colored noise More...
 
void SetReadyMessage (bool flag, string lbl)
 Indicate noise is successgully applied or not. More...
 
double ExtractDecimalFromUI (string textFromUI)
 Get the number part from the UI textfields. More...
 
virtual void SetUITextVisibility ()
 Change the visibility of the text fields according to the noise patterns. More...
 
virtual void PopulateVariablesWithDataFromUI ()
 Populate data variables used to alter noise. The data are gained through UI lables which are set by the keyboard input. More...
 

Additional Inherited Members

- Protected Attributes inherited from BaseNoiseClass
float m_MeanPeriod = 1.0f
 Hold the Mean Period Value. More...
 
float m_SDPeriod = 2.0f
 Hold the standard distribution period. More...
 
float m_Multiplier = 0.0f
 Used this as a multiplier to calculate pink noise. More...
 
int m_SampleSize = 5000
 Defines how many samples we want. More...
 
GaussianDistribution m_GaussianDistribution
 Reference to GaussianDistribution script. More...
 
bool m_NoiseAppliedFlag = false
 This flag will indicate we applied or cancel the noise to animations. More...
 
float m_PreferredWalkingSpeed = m_DefaultISOWalkSpeed
 Hold the user's preferred walking speed. More...
 
List< float > m_NoiseValueList = null
 This list stores the calculated colored noise values. More...
 
List< float > m_StandardNoiseDistribution = null
 A List to hold Normal(Gaussian) distribution. More...
 
TextMeshPro m_MeanPeriodLabel
 We get the value from these text labels. More...
 
TextMeshPro m_SDPeriodLabel
 
TextMeshPro m_SampleSizeLabel
 
TextMeshPro m_PreferredSpeedLabel
 
TextMeshPro m_CurrentPattern
 
TextMeshPro m_Title
 
GameObject m_ApplyButton
 
GameObject m_DistributionButton
 
- Static Protected Attributes inherited from BaseNoiseClass
const float m_Mean = 0.0f
 Hold the Mean value. More...
 
const float m_NoiseSTD = 1.0f
 Hold the standard distribution. More...
 
const float m_DefaultISOWalkSpeed = -1.0f
 Default ISO preferred walking speed. More...
 
- Properties inherited from BaseNoiseClass
List< float > NoiseValueList [get]
 Property to get colored noise distribution (Read-Only) More...
 
bool NoiseAppliedFlag [get]
 Property to get noise applied flag (Read-Only) More...
 
TextMeshPro CurrentPattern [get]
 Property to get the current noise in use (Read-Only) More...
 
float PreferredWalkingSpeed [get]
 Property to get user's preferred walking speed (Read-Only) More...
 
List< float > NoiseDistribution [get]
 Property to get standard normal(Gaussian) distribution (Read-Only) More...
 

Detailed Description

Handle the Random (White) Noise.

Definition at line 7 of file WhiteNoise.cs.

Member Function Documentation

◆ ApplyPattern()

override void WhiteNoise.ApplyPattern ( )
inlinevirtual

Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button.

Implements BaseNoiseClass.

Definition at line 32 of file WhiteNoise.cs.

Here is the call graph for this function:

◆ Awake()

override void WhiteNoise.Awake ( )
inlineprotectedvirtual

Extend the base class initializations.

Reimplemented from BaseNoiseClass.

Definition at line 12 of file WhiteNoise.cs.

Here is the call graph for this function:

◆ CalculateBaseNoise()

override void WhiteNoise.CalculateBaseNoise ( )
inlineprotectedvirtual

Calculate the white/random noise.

Implements BaseNoiseClass.

Definition at line 42 of file WhiteNoise.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateNoise()

override void WhiteNoise.CalculateNoise ( )
inlineprotectedvirtual

Scale the base Random/White noise.

Implements BaseNoiseClass.

Definition at line 68 of file WhiteNoise.cs.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GenerateNewDistribution()

override void WhiteNoise.GenerateNewDistribution ( )
inlinevirtual

Generate a new normal(Gaussian) distribution Mapped to NoiseDataPanel NewDistribution button.

Reimplemented from BaseNoiseClass.

Definition at line 22 of file WhiteNoise.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file: