public ActivationData(float2 interval, int sampleNum)
        {
            var start = new Tuple <float, float>(interval.x, 0);
            var end   = new Tuple <float, float>(interval.y, 0);

            this.discreteFunction = new X2FDiscreteFunction <float>(start, end, sampleNum);
            this.fftData          = new FFTData(this.DiscreteFunction);
            this.tuningData       = new TuningData();

            this.fftData.GenerateFFTData();
        }
 public void FromAnimationCurve(AnimationCurve curve)
 {
     this.discreteFunction = new X2FDiscreteFunction <float>(curve);
     this.fftData          = new FFTData(this.DiscreteFunction);
     this.fftData.GenerateFFTData();
 }