HoloLens 2 Gait Training
The purpose of this project is to create gait training application.
|
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 () |
override void | PopulateVariablesWithDataFromUI () |
Populate data variables used to alter noise. The data are gained through UI lables which are set by the keyboard input. More... | |
override void | CalculateNoise () |
Scale the base pink noise. More... | |
override void | CalculateBaseNoise () |
Calculate the base pink noise value. 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... | |
Private Member Functions | |
void | CalculateGKSQRT () |
This value is used to calculate base pink noise TODO -> We can parellize this in future. More... | |
void | IDFT (ref Complex[] X) |
Calculates inverse Discrete Fourier Transform of given spectrum X More... | |
void | IDFTReal (ref Complex[] X) |
Calculates inverse Discrete Fourier Transform of given spectrum X More... | |
Private Attributes | |
float | m_AlphaValue = 0.99f |
For pink noise 0.99 For white noise 0.5 In future, we might need to add different values. More... | |
int | m_SampleSize2X = 5000 |
2 * sample size. We calculate 2X with X sample size. More... | |
float | m_SqrtOfTwo = 0.0f |
Used this to calculate pink noise. More... | |
List< double > | m_GKSqrt |
A list to hold GKSqrt values. This is just an intermidiate value use to calculate base Pink noise. 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... | |
Definition at line 11 of file PinkNoise.cs.
|
inlinevirtual |
Calculate the noise according to the user input. Mapped to NoiseDataPanel ApplyPattern button.
Implements BaseNoiseClass.
Definition at line 69 of file PinkNoise.cs.
|
inlineprotectedvirtual |
Reimplemented from BaseNoiseClass.
Definition at line 35 of file PinkNoise.cs.
|
inlineprotectedvirtual |
Calculate the base pink noise value.
Implements BaseNoiseClass.
Definition at line 140 of file PinkNoise.cs.
|
inlineprivate |
This value is used to calculate base pink noise TODO -> We can parellize this in future.
Definition at line 95 of file PinkNoise.cs.
|
inlineprotectedvirtual |
Scale the base pink noise.
Implements BaseNoiseClass.
Definition at line 79 of file PinkNoise.cs.
|
inlinevirtual |
Generate a new normal(Gaussian) distribution Mapped to NoiseDataPanel NewDistribution button.
Reimplemented from BaseNoiseClass.
Definition at line 59 of file PinkNoise.cs.
|
inlineprivate |
Calculates inverse Discrete Fourier Transform of given spectrum X
X | Spectrum complex values |
Definition at line 239 of file PinkNoise.cs.
|
inlineprivate |
Calculates inverse Discrete Fourier Transform of given spectrum X
X | Spectrum complex values |
Definition at line 271 of file PinkNoise.cs.
|
inlineprotectedvirtual |
Populate data variables used to alter noise. The data are gained through UI lables which are set by the keyboard input.
Reimplemented from BaseNoiseClass.
Definition at line 48 of file PinkNoise.cs.
|
private |
For pink noise 0.99 For white noise 0.5 In future, we might need to add different values.
Definition at line 17 of file PinkNoise.cs.
|
private |
A list to hold GKSqrt values. This is just an intermidiate value use to calculate base Pink noise.
Definition at line 28 of file PinkNoise.cs.
|
private |
2 * sample size. We calculate 2X with X sample size.
Definition at line 21 of file PinkNoise.cs.
|
private |
Used this to calculate pink noise.
Definition at line 24 of file PinkNoise.cs.