Struct LinearEffects::EffectExpression

Nested Relationships

This struct is a nested type of Class RPGBuilder::LinearEffects.

Struct Documentation

struct EffectExpression

A single linear continuous numeric effect expression. The gradient of the effect is stored in LNF.

Public Functions

inline EffectExpression(const double &g)

Constructor for a constant-gradient linear continuous effect

Parameters:

g – The gradient of the effect

Public Members

vector<double> weights

The weights for the variables in the LNF expression of the gradient.

vector<int> variables

The variables in the LNF expression of the gradient.

double constant

The constant term of the LNF expression of the gradient.