git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@90841 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c5220c4ab5
commit
01a355420b
|
@ -172,7 +172,7 @@ public class SignalConversions {
|
|||
return Math.round(frequency * fftSize / samplingRate);
|
||||
}
|
||||
|
||||
static double[] generateSinSignal(int signalLength, float timeShift, float frequency) {
|
||||
public static double[] generateSinSignal(int signalLength, float timeShift, float frequency) {
|
||||
//final float frequency = 0.3f;// 1f;
|
||||
|
||||
double samples[] = new double[signalLength];
|
||||
|
@ -185,7 +185,7 @@ public class SignalConversions {
|
|||
return samples;
|
||||
}
|
||||
|
||||
private static double inverseMel(double x) {
|
||||
public static double inverseMel(double x) {
|
||||
double temp = Math.pow(10, x / 2595) - 1;
|
||||
return 700 * (temp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue