?? sinewave.java
字號(hào):
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: SineWave.java
package timeseries;
import java.util.Random;
// Referenced classes of package timeseries:
// TimeSeries, TimeSeriesPoint
public class SineWave extends TimeSeries
{
private static final Random rand = new Random();
public SineWave(int length, double cycles, double noise)
{
super(1);
for(int x = 0; x < length; x++)
{
double nextPoint = Math.sin(((double)x / (double)length) * 2D * 3.1415926535897931D * cycles) + rand.nextGaussian() * noise;
super.addLast(x, new TimeSeriesPoint(new double[] {
nextPoint
}));
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -