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

Method max

JSAT/src/jsat/linear/DenseVector.java:139–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 }
138
139 @Override
140 public double max()
141 {
142 if(maxCache != null)
143 return maxCache;
144 double result = array[startIndex];
145 for(int i = startIndex+1; i < endIndex; i++)
146 result = Math.max(result, array[i]);
147
148 return (maxCache = result);
149 }
150
151 @Override
152 public double sum()

Callers 3

maxLambdaLogisticL1Method · 0.95
pNormMethod · 0.45
normalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected