calculate Phase from step, frequency and sampling rate - Android java.lang

Android examples for java.lang:Integer

Description

calculate Phase from step, frequency and sampling rate

Demo Code


public class Main{


    private static double calcPhase(int step, float freq, int samplingRate) {
        return Math.PI * step * freq / samplingRate;
    }//from   w w  w.  j  ava  2s. c  o m

}

Related Tutorials