public void writeTo(DataOutput out) throws IOException {
  if (byteValuedDiscreteFeatures != null) {
    out.write(byteValuedDiscreteFeatures);
  }
  if (shortValuedDiscreteFeatures != null) {
    for (int i=0; i < shortValuedDiscreteFeatures.length; i++) {
      out.writeShort(shortValuedDiscreteFeatures[i]);
    }
  }
  if (continuousFeatures != null) {
    for (int i=0; i < continuousFeatures.length; i++) {
      out.writeFloat(continuousFeatures[i]);
    }
  }
}

public void writeTo ( DataOutput out ) throws IOException { if ( byteValuedDiscreteFeatures != null ) { out . write ( byteValuedDiscreteFeatures ) ; } if ( shortValuedDiscreteFeatures != null ) { for ( int i = 0 ; i < shortValuedDiscreteFeatures . length ; i ++ ) { out . writeShort ( shortValuedDiscreteFeatures [ i ] ) ; } } if ( continuousFeatures != null ) { for ( int i = 0 ; i < continuousFeatures . length ; i ++ ) { out . writeFloat ( continuousFeatures [ i ] ) ; } } }
write a binary representation of this feature vector to the given data output .
