private float GetNoise() { float noise = GenericFunctions.GetGaussian(accuracy); //Random.Range(-accuracy / 2f, accuracy / 2f); // Adds RANDOM noise to a signal within given limits. // the normal of the noise can be bigger due to same in all directions. Fix this. // Add noise distribution, gaussian or similar. return(noise); }
// Update is called once per frame void Update() { float val = GenericFunctions.GetGaussian(0.1f); if (Mathf.Abs(val) > Mathf.Abs(prev_val)) { Debug.Log(val); prev_val = val; } }