24 package org.lightjason.agentspeak.action.builtin.math.statistic;
26 import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
27 import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
30 import javax.annotation.Nonnull;
31 import java.util.Locale;
63 return EStatisticValue.valueOf( p_value.trim().toUpperCase( Locale.ROOT ) );
72 public final double value( @Nonnull
final SummaryStatistics p_statistic )
77 return p_statistic.getGeometricMean();
80 return p_statistic.getMax();
83 return p_statistic.getMin();
86 return p_statistic.getN();
88 case POPULATIONVARIANCE:
89 return p_statistic.getPopulationVariance();
92 return p_statistic.getQuadraticMean();
95 return p_statistic.getSecondMoment();
97 case STANDARDDEVIATION:
98 return p_statistic.getStandardDeviation();
101 return p_statistic.getSum();
104 return p_statistic.getSumOfLogs();
107 return p_statistic.getSumsq();
110 return p_statistic.getVariance();
113 return p_statistic.getMean();
126 public final double value( @Nonnull
final DescriptiveStatistics p_statistic )
131 return p_statistic.getGeometricMean();
134 return p_statistic.getMax();
137 return p_statistic.getMin();
140 return p_statistic.getN();
142 case POPULATIONVARIANCE:
143 return p_statistic.getPopulationVariance();
146 return p_statistic.getQuadraticMean();
148 case STANDARDDEVIATION:
149 return p_statistic.getStandardDeviation();
152 return p_statistic.getSum();
155 return p_statistic.getSumsq();
158 return p_statistic.getVariance();
161 return p_statistic.getMean();
164 return p_statistic.getKurtosis();
final double value( @Nonnull final DescriptiveStatistics p_statistic)
returns a statistic value
static< T > String languagestring(final T p_source, final String p_label, final Object... p_parameter)
returns the language depend string on any object
class for any helper calls
static EStatisticValue from( @Nonnull final String p_value)
additional factory
final double value( @Nonnull final SummaryStatistics p_statistic)
returns a statistic value
enum of statistic value types