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

Method max

JSAT/src/jsat/linear/SparseVector.java:339–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337 }
338
339 @Override
340 public double max()
341 {
342 if(maxCache != null)
343 return maxCache;
344
345 double result = 0;
346 for(int i = 0; i < used; i++)
347 result = Math.max(result, values[i]);
348
349 return (maxCache = result);
350 }
351
352 @Override
353 public double sum()

Callers 4

insertValueMethod · 0.45
pNormMethod · 0.45
cloneMethod · 0.45
normalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected