24 package org.lightjason.agentspeak.action.builtin.math.statistic;
28 import javax.annotation.Nonnull;
29 import java.util.List;
30 import java.util.stream.Collectors;
31 import java.util.stream.Stream;
53 protected final List<Double>
weight( @Nonnull
final List<?> p_items, @Nonnull
final Stream<Double> p_values, @Nonnull
final List<ITerm> p_argument )
55 return p_values.collect( Collectors.toList() );
abstract class for creating a selection one element of a list based on a fitness weight ...
static final long serialVersionUID
serial id
action to define a exponential fitness-proportinate-selection mechanism.
final List< Double > weight( @Nonnull final List<?> p_items, @Nonnull final Stream< Double > p_values, @Nonnull final List< ITerm > p_argument)