Exemplo 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);
    }
  }
Exemplo n.º 2
0
 public static void plot(double[] x, int startInd, int endInd, String strTitle) {
   plot(x, startInd, endInd, strTitle, false);
 }
Exemplo n.º 3
0
 public static void plot(
     double[] x, int startInd, int endInd, String strTitle, boolean bAutoClose) {
   plot(x, startInd, endInd, strTitle, bAutoClose, 3000);
 }
Exemplo n.º 4
0
 public static void plot(double[] x, String strTitle) {
   if (x != null) plot(x, 0, x.length - 1, strTitle, false);
 }
Exemplo n.º 5
0
 public static void plot(double[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
Exemplo n.º 6
0
 public static void plot(float[] x, int startInd, int endInd) {
   plot(x, startInd, endInd, "");
 }
Exemplo n.º 7
0
 public static void plot(double[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }
Exemplo n.º 8
0
 public static void plot(float[] x) {
   if (x != null) plot(x, 0, x.length - 1);
 }