List of usage examples for java.lang Double MIN_VALUE
double MIN_VALUE
To view the source code for java.lang Double MIN_VALUE.
Click Source Link
From source file:net.zypr.api.vo.GeoPositionVO.java
public GeoPositionVO(double latDegreesMinutes, CardinalDirection latDirection, double lonDegreesMinutes, CardinalDirection lonDirection) { this(latDegreesMinutes, latDirection, lonDegreesMinutes, lonDirection, Double.MIN_VALUE); }
From source file:change_point_detection.CusumElement.java
public void clear() { this.preChangeDist = null; this.postChangeDist = null; this.preChangeMean = Double.MIN_VALUE; this.cusumScore = Double.MIN_VALUE; }
From source file:net.openhft.smoothie.MathDecisions.java
private static void printFootprints(int min, int max, int refSize) { System.out.println("Footprints:"); for (int i = min; i <= max; i++) { System.out.println("average entries/segment: " + i + " " + " double: " + footprint(i, refSize, 1) + " quad: " + footprint(i, refSize, 2)); }//w w w . ja v a2 s . c om System.out.println("Footprint if size not specified:"); double minF = Double.MAX_VALUE, maxF = Double.MIN_VALUE; int minE = 0, maxE = 0; int maxCap = cap(max, refSize); for (int i = maxCap / 2; i <= maxCap; i++) { double f = footprint(i, refSize, 1, maxCap); if (f < minF) { minF = f; minE = i; } if (f > maxF) { maxF = f; maxE = i; } } System.out.println("Best case: " + refSize + ": " + minE + " " + minF); System.out.println("Worst case: " + refSize + ": " + maxE + " " + maxF); }
From source file:org.softinica.maven.jmeter.report.analyser.SummaryReportAnalyzer.java
@Override protected void fillTable(Table table, Multimap<Object, Sample> grouped) { StandardDeviation deviation = new StandardDeviation(); for (Object key : grouped.keySet()) { double total = 0D; int sampleCount = grouped.get(key).size(); double[] values = new double[sampleCount]; double min = Double.MAX_VALUE; double max = Double.MIN_VALUE; long minTimestamp = Long.MAX_VALUE; long maxTimestamp = Long.MIN_VALUE; long totalBytes = 0; int errorCount = 0; int i = 0; for (Sample sample : grouped.get(key)) { total += sample.getValue();/*from w w w . j a v a 2s . c o m*/ values[i] = sample.getValue(); i++; if (min > sample.getValue()) { min = sample.getValue(); } if (max < sample.getValue()) { max = sample.getValue(); } if (!sample.isSuccess()) { errorCount++; } if (minTimestamp > sample.getTimestamp()) { minTimestamp = sample.getTimestamp(); } if (maxTimestamp < sample.getTimestamp()) { maxTimestamp = sample.getTimestamp(); } totalBytes += sample.getByteCount(); } table.put(key, LABEL, key.toString()); table.put(key, SAMPLES, String.valueOf(sampleCount)); table.put(key, AVERAGE, NUMBER_FORMAT.format(total / sampleCount)); table.put(key, MIN, NUMBER_FORMAT.format(min)); table.put(key, MAX, NUMBER_FORMAT.format(max)); table.put(key, STD_DEV, NUMBER_FORMAT.format(deviation.evaluate(values))); table.put(key, ERROR, NUMBER_FORMAT.format(100.0D * errorCount / sampleCount)); table.put(key, THROUGHPUT, NUMBER_FORMAT.format(sampleCount / total * 1000)); table.put(key, KB_PER_SEC, NUMBER_FORMAT.format(totalBytes / total * 1000)); table.put(key, AVERAGE_BYTES, NUMBER_FORMAT.format(totalBytes / sampleCount)); } }
From source file:com.opengamma.maths.lowlevelapi.functions.utilities.Max.java
/** * Returns the maximum value in data// w w w. j av a 2 s . c om * @param data the data to search * @return max, the maximum */ public static double value(double... data) { Validate.notNull(data); double max = Double.MIN_VALUE; final int n = data.length; for (int i = 0; i < n; i++) { if (data[i] > max) { max = data[i]; } } return max; }
From source file:org.joda.primitives.collection.impl.AbstractTestDoubleCollection.java
public Double[] getFullNonNullElements() { return new Double[] { new Double(2d), new Double(-2d), new Double(38.765d), new Double(0d), new Double(10000d), new Double(202d), new Double(Double.MIN_VALUE), new Double(Double.MAX_VALUE) }; }
From source file:com.sixrr.metrics.ui.charts.HistogramDialog.java
private static boolean isIntegralData(double[] data) { boolean isIntegral = true; double maximum = Double.MIN_VALUE; for (double aData : data) { if (!isIntegral(aData)) { isIntegral = false;/*w w w . ja v a 2 s. c o m*/ } maximum = Math.max(maximum, aData); } return isIntegral && maximum < 2 * DEFAULT_BIN_COUNT; }
From source file:peakml.util.jfreechart.FastErrorBarPlot.java
public void clear() { ymin = Double.MAX_VALUE; ymax = Double.MIN_VALUE; dataseries.clear(); }
From source file:peakml.util.jfreechart.FastSpectrumPlot.java
public void clear() { xmin = Double.MAX_VALUE; xmax = Double.MIN_VALUE; ymax = Double.MIN_VALUE; dataseries.clear(); this.fireChangeEvent(); }
From source file:org.apache.hadoop.hbase.client.coprocessor.BigDecimalColumnInterpreter.java
@Override public BigDecimal getMinValue() { return BigDecimal.valueOf(Double.MIN_VALUE); }