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;
36 import javax.annotation.Nonnegative;
37 import javax.annotation.Nonnull;
38 import java.util.List;
39 import java.util.stream.Collectors;
77 @Nonnull
final List<ITerm> p_argument, @Nonnull
final List<ITerm> p_return )
79 final List<ITerm> l_arguments =
CCommon.
flatten( p_argument ).collect( Collectors.toList() );
84 .map(
ITerm::<String>raw )
86 .mapToDouble( i -> i.value( l_arguments.get( 0 ).<SummaryStatistics>raw() ) )
89 .forEach( p_return::add );
93 .map(
ITerm::<String>raw )
95 .mapToDouble( i -> i.value( l_arguments.get( 0 ).<DescriptiveStatistics>raw() ) )
98 .forEach( p_return::add );
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
gets multiple statistic values of a single statistic object.
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
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
CMultipleStatisticValue()
ctor
static< T > boolean rawvalueAssignableTo( @Nonnull final T p_value, @Nonnull final Class<?>... p_class)
checks a term value for assignable class
result for an immutable fuzzy value
static< N > CRawTerm< N > from(final N p_value)
factory for a raw term
static EStatisticValue from( @Nonnull final String p_value)
additional factory
final int minimalArgumentNumber()
minimum number of arguments
static final long serialVersionUID
serial id
term structure for simple datatypes