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

Apply a constant speed for the whole walk cycle. More...

Inheritance diagram for ISONoise:
Inheritance graph
Collaboration diagram for ISONoise:
Collaboration graph

Public Member Functions

override void ApplyPattern ()
 Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button. More...
 
override void CanclePattern ()
 Cancel the current noise pattern and reset it with default speed. Mapped to NoiseDataPanel CancelPattern 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 ()
 This UI only has one field and there is no need for a Distribution Button. Therefore, We only display PreferredSpeed field and disable Distribution Button. More...
 
override void SetUITextVisibility ()
 Change the visibility of the text fields according to the noise patterns. More...
 
override void CalculateBaseNoise ()
 We don't need this method for this class. This is just a dummy implementation. More...
 
override void CalculateNoise ()
 Calculate the ISO 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

Apply a constant speed for the whole walk cycle.

Definition at line 6 of file ISONoise.cs.

Member Function Documentation

◆ ApplyPattern()

override void ISONoise.ApplyPattern ( )
inlinevirtual

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

Implements BaseNoiseClass.

Definition at line 45 of file ISONoise.cs.

Here is the call graph for this function:

◆ Awake()

override void ISONoise.Awake ( )
inlineprotectedvirtual

This UI only has one field and there is no need for a Distribution Button. Therefore, We only display PreferredSpeed field and disable Distribution Button.

Reimplemented from BaseNoiseClass.

Definition at line 15 of file ISONoise.cs.

◆ CalculateBaseNoise()

override void ISONoise.CalculateBaseNoise ( )
inlineprotectedvirtual

We don't need this method for this class. This is just a dummy implementation.

Implements BaseNoiseClass.

Definition at line 36 of file ISONoise.cs.

◆ CalculateNoise()

override void ISONoise.CalculateNoise ( )
inlineprotectedvirtual

Calculate the ISO noise.

Implements BaseNoiseClass.

Definition at line 66 of file ISONoise.cs.

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

◆ CanclePattern()

override void ISONoise.CanclePattern ( )
inlinevirtual

Cancel the current noise pattern and reset it with default speed. Mapped to NoiseDataPanel CancelPattern button.

Reimplemented from BaseNoiseClass.

Definition at line 56 of file ISONoise.cs.

◆ SetUITextVisibility()

override void ISONoise.SetUITextVisibility ( )
inlineprotectedvirtual

Change the visibility of the text fields according to the noise patterns.


Reimplemented from BaseNoiseClass.

Definition at line 24 of file ISONoise.cs.


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