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.StatisticalSummary;
28 import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
29 import org.apache.commons.math3.stat.descriptive.SynchronizedDescriptiveStatistics;
30 import org.apache.commons.math3.stat.descriptive.SynchronizedSummaryStatistics;
40 import javax.annotation.Nonnull;
41 import java.util.List;
42 import java.util.Locale;
43 import java.util.stream.Stream;
74 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
78 p_argument.size() == 0
81 ).map( i -> i.generate( p_parallel ) )
103 public static EType from( @Nonnull
final String p_value )
105 return EType.valueOf( p_value.trim().toUpperCase( Locale.ROOT ) );
115 public final StatisticalSummary
generate( @Nonnull
final Boolean p_parallel )
121 ?
new SynchronizedSummaryStatistics()
122 :
new SummaryStatistics();
126 ?
new SynchronizedDescriptiveStatistics()
127 :
new DescriptiveStatistics();
base class of build-in actions for setting name by package/classname (without prefix character) ...
static< N > IFuzzyValue< N > from( @Nonnull final N p_value)
factory
common structure for execution definition
final StatisticalSummary generate( @Nonnull final Boolean p_parallel)
returns the statistic object
static< T > String languagestring(final T p_source, final String p_label, final Object... p_parameter)
returns the language depend string on any object
action to create a statistic.
execution context with local data
static Stream< ITerm > flatten( @Nonnull final Collection<? extends ITerm > p_terms)
flat term-in-term collection into a straight term list
final IFuzzyValue< Boolean > execute(final boolean p_parallel, @Nonnull final IContext p_context, @Nonnull final List< ITerm > p_argument, @Nonnull final List< ITerm > p_return)
defines a plan-body operation
static final long serialVersionUID
serial id
result for an immutable fuzzy value
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
class for any helper calls
static EType from( @Nonnull final String p_value)
additional factory
term structure for simple datatypes