package math;
import org.apache.commons.math3.transform.*;
import org.apache.commons.math3.complex.Complex;
import org.apache.commons.math3.transform.DftNormalization;
import org.apache.commons.math3.transform.TransformType;
import org.apache.commons.math3.analysis.*;
class pro{
public static void main(String[] args) {
pro test=new pro();
}
pro(){
int n=(int)Math.pow(2,5)+1;
FastCosineTransformer fft = new FastCosineTransformer(DctNormalization.ORTHOGONAL_DCT_I);
double[] comp=fft.transform(f,-10,10,n, TransformType.INVERSE);
}
UnivariateFunction f = new UnivariateFunction() {
public double value(double p) {
return 5*p;
}
};
}
最終更新:2015年11月25日 15:21