Examples of samples()


Examples of edu.purdue.wind.Wave.samples()

      System.exit(1);
  }

  int nSamples = 0;
  for (int i = 0; i < 32; i++) {
      if ((1 << i) > wave.samples()) {
    break;
      }
      nSamples = 1 << i;
  }
View Full Code Here

Examples of edu.purdue.wind.Wave.samples()

  }

  System.out.println("Bits per sample:   " + wave.sampleBits());
  System.out.println("Sample rate (Hz):  " + wave.sampleRate());
  System.out.println("Channels:          " + wave.channels());
  System.out.println("Number of samples: " + wave.samples());
    }
}
View Full Code Here

Examples of edu.purdue.wind.Wave.samples()

  } catch (IOException e) {
      throw new RuntimeException(e);
  }

  final int[] samples = wave.sampleData((short)0);
  final int nSamples = wave.samples();

  for (int i = 0; i < nSamples; i++) {
      System.out.println("" + i + " " + samples[i]);
  }
    }
View Full Code Here

Examples of edu.purdue.wind.Wave.samples()

  // Find the highest power of two smaller than wave.samples(),
  // the stupid way.  Assumes that there *are* samples.
  int bits = 0;
  for (bits = 0; bits < 32; bits++) {
      if (1 << (bits + 1) > wave.samples()) {
    break;
      }
  }

  int nSamples = 1 << bits;
View Full Code Here

Examples of org.jquantlib.math.statistics.GenericSequenceStatistics.samples()

        }

        Array calculated;
        /*@Real*/ double expected, tolerance;

        if (ss.samples() != data.size())
            fail("SequenceStatistics<" + name + ">: "
                       + "wrong number of samples\n"
                       + "    calculated: " + ss.samples() + "\n"
                       + "    expected:   " + data.size());

View Full Code Here

Examples of org.jquantlib.math.statistics.GenericSequenceStatistics.samples()

        /*@Real*/ double expected, tolerance;

        if (ss.samples() != data.size())
            fail("SequenceStatistics<" + name + ">: "
                       + "wrong number of samples\n"
                       + "    calculated: " + ss.samples() + "\n"
                       + "    expected:   " + data.size());

        expected = weights.accumulate(0.0);
        if (ss.weightSum() != expected)
            fail("SequenceStatistics<" + name + ">: "
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.