MCPcopy Create free account
hub / github.com/WinVector/Logistic / writeVec

Method writeVec

src/com/winvector/logistic/mr/WritableUtils.java:72–78  ·  view source on GitHub ↗
(final double[] v, final DataOutput out)

Source from the content-addressed store, hash-verified

70 }
71
72 public static void writeVec(final double[] v, final DataOutput out) throws IOException {
73 final int n = v.length;
74 out.writeInt(n);
75 for(int i=0;i<n;++i) {
76 out.writeDouble(v[i]);
77 }
78 }
79
80 public static String hostDescr() {
81 try {

Callers 1

writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected