LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.action.builtin.math.statistic.CExponentialSelection Class Reference

action to define a fitness-proportinate-selection mechanism. More...

+ Inheritance diagram for org.lightjason.agentspeak.action.builtin.math.statistic.CExponentialSelection:
+ Collaboration diagram for org.lightjason.agentspeak.action.builtin.math.statistic.CExponentialSelection:

Protected Member Functions

final int additionalArgumentNumber ()
 
final List< Double > weight ( @Nonnull final List<?> p_items, @Nonnull final Stream< Double > p_values, @Nonnull final List< ITerm > p_argument)
 
- Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.math.statistic.ISelection
 ISelection ()
 ctor More...
 
int additionalArgumentNumber ()
 number of additional parameter More...
 
abstract List< Double > weight ( @Nonnull final List<?> p_items, @Nonnull final Stream< Double > p_values, @Nonnull final List< ITerm > p_argument)
 modifies the weights More...
 
- Protected Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
 IBuiltinAction ()
 ctor More...
 
 IBuiltinAction (final int p_length)
 ctor More...
 

Static Private Attributes

static final long serialVersionUID = -5158153474814301429L
 serial id More...
 

Additional Inherited Members

- Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.math.statistic.ISelection
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 More...
 
final int minimalArgumentNumber ()
 minimum number of arguments More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
final IPath name ()
 returns the name with path of the action More...
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.IBaseAction
final boolean equals (final Object p_object)
 
final int hashCode ()
 
final String toString ()
 
- Public Member Functions inherited from org.lightjason.agentspeak.action.IAction
default Stream< IVariable<?> > variables ()
 returns a stream with all used variables More...
 
- Public Attributes inherited from org.lightjason.agentspeak.action.IAction
long serialVersionUID = -6374480398439703170L
 serial id More...
 
- Static Protected Attributes inherited from org.lightjason.agentspeak.action.builtin.IBuiltinAction
static final Logger LOGGER = CCommon.logger( IBuiltinAction.class )
 logger More...
 
- Static Protected Attributes inherited from org.lightjason.agentspeak.action.IBaseAction
static final Logger LOGGER = org.lightjason.agentspeak.common.CCommon.logger( IAction.class )
 logger More...
 

Detailed Description

The action defines a fitness-proportinate-selection based on an exponential distribution, the first and second argument must be a list, the first list contains elements, the second list contains numeric values for defining the weights, the third argument is the demand / rational factor

S = math/statistic/exponentialselection( ["a","b","c","d"], [0.5, 0.7, 0.9, 3], RationalFactor );
See also
https://en.wikipedia.org/wiki/Boltzmann_distribution
https://en.wikipedia.org/wiki/Log-linear_model

Definition at line 44 of file CExponentialSelection.java.

Member Function Documentation

◆ additionalArgumentNumber()

final int org.lightjason.agentspeak.action.builtin.math.statistic.CExponentialSelection.additionalArgumentNumber ( )
protected

Definition at line 60 of file CExponentialSelection.java.

◆ weight()

final List<Double> org.lightjason.agentspeak.action.builtin.math.statistic.CExponentialSelection.weight ( @Nonnull final List<?>  p_items,
@Nonnull final Stream< Double >  p_values,
@Nonnull final List< ITerm p_argument 
)
protected

Definition at line 53 of file CExponentialSelection.java.

Member Data Documentation

◆ serialVersionUID

final long org.lightjason.agentspeak.action.builtin.math.statistic.CExponentialSelection.serialVersionUID = -5158153474814301429L
staticprivate

Definition at line 49 of file CExponentialSelection.java.