Esempio n. 1
0
  public static void plotZoomed(
      double[] x,
      String strTitle,
      double minVal,
      double maxVal,
      boolean bAutoClose,
      int milliSecondsToClose) {
    if (x != null) {
      double[] y = null;
      if (minVal > maxVal) {
        double tmp = minVal;
        minVal = maxVal;
        maxVal = tmp;
      }
      y = new double[x.length];
      for (int i = 0; i < x.length; i++) {
        y[i] = x[i];
        if (y[i] < minVal) y[i] = minVal;
        else if (y[i] > maxVal) y[i] = maxVal;
      }

      plot(y, 0, y.length - 1, strTitle, bAutoClose, milliSecondsToClose);
    }
  }
Esempio n. 2
0
 public static void plot(double[] x, int startInd, int endInd, String strTitle) {
   plot(x, startInd, endInd, strTitle, false);
 }
Esempio n. 3
0
 public static void plot(
     double[] x, int startInd, int endInd, String strTitle, boolean bAutoClose) {
   plot(x, startInd, endInd, strTitle, bAutoClose, 3000);
 }
Esempio n. 4
0
 public static void plot(double[] x, String strTitle) {
   if (x != null) plot(x, 0, x.length - 1, strTitle, false);
 }
Esempio n. 5
0
 public static void plot(double[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
Esempio n. 6
0
 public static void plot(float[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
Esempio n. 7
0
 public static void plot(double[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }
Esempio n. 8
0
 public static void plot(float[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }