All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnt.FFT.Test Maven / Gradle / Ivy

Go to download

The S-Space Package is a Natural Language Processing library for distributional semantics representations. Distributional semantics representations model the meaning of words, phrases, and sentences as high dimensional vectors or probability distributions. The library includes common algorithms such as Latent Semantic Analysis, Random Indexing, and Latent Dirichlet Allocation. The S-Space package also includes software libraries for matrices, vectors, graphs, and numerous clustering algorithms.

The newest version!
package jnt.FFT;

class Test {
  public static void main(String[] args) {
    RealDoubleFFT_Radix2 ffter = new RealDoubleFFT_Radix2(32);
    double[] cat = { 0.1151, -0.1175, -0.0573, -0.0733, -0.0406, -0.0332, -0.3583, 0.0166, -0.1998, -0.1076, -0.0756, -0.2580, 0.0614, -0.2200, -0.0827, 0.0026, 0.0850, -0.4051, -0.0536, 0.0355, -0.0947, -0.0242, 0.0421, 0.1048, -0.1097, -0.0729, 0.0020, -0.0699, -0.1137, 0.0702, 0.1843, -0.1336};
    double[] are = { 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000};
    ffter.transform(cat, 0, 1);
    for (int i = 0; i < 32; i++) {
      System.out.println(cat[i]);
    }
  }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy