MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / countNaNs

Method countNaNs

JSAT/src/jsat/linear/Vec.java:41–48  ·  view source on GitHub ↗

@return the number of NaNs present in this vector

()

Source from the content-addressed store, hash-verified

39 * @return the number of NaNs present in this vector
40 */
41 public int countNaNs()
42 {
43 int nans = 0;
44 for(IndexValue iv : this)
45 if(Double.isNaN(iv.getValue()))
46 nans++;
47 return nans;
48 }
49
50 /**
51 * Indicates whether or not this vector can be mutated. If

Callers 2

getMissingDroppedMethod · 0.80
countMissingValuesMethod · 0.80

Calls 1

getValueMethod · 0.45

Tested by

no test coverage detected