/** * Returns a string representation of this vector without adding extra * whitespace. * * @return a string representation of this vector. */ public final String toStringNoWhitespace() { return "[" + FormatUtil.format(elements, ",") + "]"; }
/** * Formats the double array d with the specified number format. * * @param d the double array to be formatted * @param nf the number format to be used for formatting * @return a String representing the double array d */ public static String format(double[] d, NumberFormat nf) { return format(d, " ", nf); }
/** * returns String-representation of Matrix. * * @return String representation of this Matrix */ public static String format(Matrix m) { return format(m, FormatUtil.NF); }
/** * Returns a String representation of the HyperBoundingBox. * * @param nf number format for output accuracy * @param pre the prefix of each line * @return a string representation of this hyper bounding box */ public String toString(String pre, NumberFormat nf) { return pre + "[Min(" + FormatUtil.format(min, ",", nf) + "), Max(" + FormatUtil.format(max, ",", nf) + ")]"; }
/** * Formats the float array f with ',' as separator and 2 fraction digits. * * @param f the float array to be formatted * @return a String representing the float array f */ public static String format(float[] f) { return format(f, ", ", NF2); }
/** * Returns a string representation of the object. * * @return a string representation of the object. */ @Override public String toString() { return FormatUtil.format(b, FormatUtil.NF4); } }
/** * Formats the int array a for printing purposes. * * @param a the int array to be formatted * @return a String representing the int array a */ public static String format(int[] a) { return format(a, ", "); }
/** * Returns a string representation of this EigenPair. * * @return a string representation of this EigenPair */ @Override public String toString() { return "(ew = " + eigenvalue + ", ev = [" + FormatUtil.format(eigenvector) + "])"; } }
/** * Formats the double array d with ',' as separator and 2 fraction digits. * * @param d the double array to be formatted * @return a String representing the double array d */ public static String format(double[][] d) { return format(d, "\n", ", ", NF2); }
@Override public String toString() { return FormatUtil.format(labels, " "); }
/** * Returns a string representation of this vector. * * @return a string representation of this vector. */ @Override public final String toString() { return FormatUtil.format(this); }
/** * toString returns String-representation of Matrix. */ @Override public String toString() { return FormatUtil.format(this); } }
/** * Returns a string representation of the specified bit set. * * @param dim the overall dimensionality of the bit set * @param bitSet the bitSet * @return a string representation of the specified bit set. */ public static String format(int dim, long[] bitSet) { // TODO: removed whitespace - hierarchy reading to be adapted! return format(bitSet, dim, ","); }
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append("normalization class: ").append(getClass().getName()); result.append('\n'); result.append("normalization means: ").append(FormatUtil.format(mean)); result.append('\n'); result.append("normalization stddevs: ").append(FormatUtil.format(stddev)); return result.toString(); }
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append("normalization class: ").append(getClass().getName()); result.append('\n'); result.append("normalization minima: ").append(FormatUtil.format(minima)); result.append('\n'); result.append("normalization maxima: ").append(FormatUtil.format(maxima)); return result.toString(); }
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append("normalization class: ").append(getClass().getName()); result.append('\n'); result.append("normalization median: ").append(FormatUtil.format(median)); result.append('\n'); result.append("normalization scaling factor: ").append(FormatUtil.format(imadsigma)); return result.toString(); } }
@Override public String toString() { StringBuilder result = new StringBuilder(); result.append("normalization class: ").append(getClass().getName()); result.append('\n'); result.append("normalization means: ").append(FormatUtil.format(mean)); return result.toString(); }
/** * Returns String-representation of Vector. * * @return String representation of this Vector */ public static String format(Vector m) { return format(m.getArrayRef()); }
/** * Determines the global extremum of this parameterization function. */ private void determineGlobalExtremum() { alphaExtremum = new double[vec.getDimensionality() - 1]; for(int n = alphaExtremum.length - 1; n >= 0; n--) { alphaExtremum[n] = extremum_alpha_n(n, alphaExtremum); if(Double.isNaN(alphaExtremum[n])) { throw new IllegalStateException("Houston, we have a problem!" + "\n" + this + "\n" + vec.getColumnVector() + "\n" + FormatUtil.format(alphaExtremum)); } } determineGlobalExtremumType(); }