/** * Returns the smallest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMin(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return min(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMax(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return max(u); }
/** * Returns the mean of a vector of doubles. Any values which are NaN or * infinite are ignored. If the vector is empty, 0.0 is returned. */ public static double safeMean(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return mean(u); }
/** * Returns the standard deviation of a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector contains fewer than two * values, 1.0 is returned. */ public static double safeStdev(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) < 2) return 1.0; return stdev(u); }
/** * Returns the mean of a vector of doubles. Any values which are NaN or * infinite are ignored. If the vector is empty, 0.0 is returned. */ public static double safeMean(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return mean(u); }
/** * Returns the smallest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMin(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return min(u); }
/** * Returns the smallest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMin(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return min(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMin(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return min(u); }
/** * Returns the mean of a vector of doubles. Any values which are NaN or * infinite are ignored. If the vector is empty, 0.0 is returned. */ public static double safeMean(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return mean(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMax(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return max(u); }
/** * Returns the standard deviation of a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector contains fewer than two * values, 1.0 is returned. */ public static double safeStdev(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) < 2) return 1.0; return stdev(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMax(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return max(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMin(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return min(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMax(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return max(u); }
/** * Returns the standard deviation of a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector contains fewer than two * values, 1.0 is returned. */ public static double safeStdev(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) < 2) return 1.0; return stdev(u); }
/** * Returns the largest value in a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector is empty, 0.0 is * returned. */ public static double safeMax(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return max(u); }
/** * Returns the standard deviation of a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector contains fewer than two * values, 1.0 is returned. */ public static double safeStdev(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) < 2) return 1.0; return stdev(u); }
/** * Returns the mean of a vector of doubles. Any values which are NaN or * infinite are ignored. If the vector is empty, 0.0 is returned. */ public static double safeMean(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return mean(u); }
/** * Returns the standard deviation of a vector of doubles. Any values which * are NaN or infinite are ignored. If the vector contains fewer than two * values, 1.0 is returned. */ public static double safeStdev(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) < 2) return 1.0; return stdev(u); }
/** * Returns the mean of a vector of doubles. Any values which are NaN or * infinite are ignored. If the vector is empty, 0.0 is returned. */ public static double safeMean(double[] v) { double[] u = filterNaNAndInfinite(v); if (numRows(u) == 0) return 0.0; return mean(u); }