Java Code Examples for org.apache.commons.math.MathException#printStackTrace()
The following examples show how to use
org.apache.commons.math.MathException#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 2
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 3
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 4
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 5
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 6
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 7
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 8
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 9
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 10
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 11
Source File: ListUnivariateImpl.java From cacheonix-core with GNU Lesser General Public License v2.1 | 6 votes |
/** * @see org.apache.commons.math.stat.descriptive.DescriptiveStatistics#getElement(int) */ public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 12
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 13
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 14
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 15
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 16
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 17
Source File: ListUnivariateImpl.java From astor with GNU General Public License v2.0 | 6 votes |
/** {@inheritDoc} */ @Override public double getElement(int index) { double value = Double.NaN; int calcIndex = index; if (windowSize != DescriptiveStatistics.INFINITE_WINDOW && windowSize < list.size()) { calcIndex = (list.size() - windowSize) + index; } try { value = transformer.transform(list.get(calcIndex)); } catch (MathException e) { e.printStackTrace(); } return value; }
Example 18
Source File: MarginalLikelihoodEstimator.java From beast-mcmc with GNU Lesser General Public License v2.1 | 6 votes |
double nextPathParameter() { if (step > pathSteps) return -1; if (step == 0) { step += 1; return 1.0; } else if (step + 1 < pathSteps) { double ratio = (double) step / (double) (pathSteps - 1); try { step += 1; return 1.0 - betaDistribution.inverseCumulativeProbability(ratio); } catch (MathException e) { e.printStackTrace(); } } step += 1; return 0.0; }
Example 19
Source File: GammaDistribution.java From beast-mcmc with GNU Lesser General Public License v2.1 | 6 votes |
private static void testQuantileCM(double y, double shape, double scale) { long time = System.currentTimeMillis(); double value = 0; try { for (int i = 0; i < 1000; i++) { value = (new org.apache.commons.math.distribution.GammaDistributionImpl(shape, scale)).inverseCumulativeProbability(y); } value = (new org.apache.commons.math.distribution.GammaDistributionImpl(shape, scale)).inverseCumulativeProbability(y); } catch (MathException e) { e.printStackTrace(); } long elapsed = System.currentTimeMillis() - time; System.out.println("commons.maths inverseCDF, "+ y +", for shape=" + shape + ", scale=" + scale + " : " + value + ", time=" + elapsed + "ms"); }
Example 20
Source File: DirichletProcessOperator.java From beast-mcmc with GNU Lesser General Public License v2.1 | 5 votes |
@Override public double doOperation() { try { // doOperate(); doOp(); } catch (MathException e) { e.printStackTrace(); }// END: try-catch block return 0.0; }