/** * Outputs a textual representation of this vector to the specified stream. The string * representation is the same as in {@link SparseWeightVector#write(PrintStream)}, with two * added lines just after the <code>"Begin"</code> annotation that give the values of * {@link #stddev} and {@link #bias}. * * @param out The stream to write to. **/ public void write(PrintStream out) { out.println("Begin BiasedRandomWeightVector"); out.println("stddev = " + stddev); out.println("bias = " + bias); toStringJustWeights(out); out.println("End BiasedRandomWeightVector"); }
/** * Outputs a textual representation of this vector to the specified stream. The string * representation is the same as in {@link SparseWeightVector#write(PrintStream)}, with two * added lines just after the <code>"Begin"</code> annotation that give the values of * {@link #stddev} and {@link #bias}. * * @param out The stream to write to. * @param lex The feature lexicon. **/ public void write(PrintStream out, Lexicon lex) { out.println("Begin BiasedRandomWeightVector"); out.println("stddev = " + stddev); out.println("bias = " + bias); toStringJustWeights(out, 0, lex); out.println("End BiasedRandomWeightVector"); }