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

Method min

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

Returns the minimum value stored in this vector @return the minimum value in this vector

()

Source from the content-addressed store, hash-verified

432 * @return the minimum value in this vector
433 */
434 public double min()
435 {
436 if (isSparse() && nnz() < length())
437 {
438 double min = 0.0;
439 for (IndexValue iv : this)
440 min = Math.min(min, iv.getValue());
441 return min;
442 }
443 else
444 {
445 double min = get(0);
446 for (int i = 1; i < length(); i++)
447 min = Math.min(min, get(i));
448 return min;
449 }
450 }
451
452 /**
453 * Returns the maximum value stored in this vector

Callers 15

trainMethod · 0.95
iterationStepMethod · 0.95
sortMethod · 0.45
subSetMethod · 0.45
headSetMethod · 0.45
tailSetMethod · 0.45
getStartBlockMethod · 0.45
getEndBlockMethod · 0.45
detMethod · 0.45
backSubMethod · 0.45
absDetMethod · 0.45
hqr2Method · 0.45

Calls 5

isSparseMethod · 0.95
nnzMethod · 0.95
lengthMethod · 0.95
getMethod · 0.95
getValueMethod · 0.45

Tested by 1

dCalcMethod · 0.36