Lean
$LEAN_TAG$
|
Define the way to compare current real-values and the new one (candidates). It's encapsulated in different abstraction to allow configure the direction of optimization, i.e. max or min. More...
Public Member Functions | |
Extremum (Func< decimal, decimal, bool > comparer) | |
Create an instance of Extremum to compare values. More... | |
bool | Better (decimal current, decimal candidate) |
Compares two values; identifies whether condition is met or not. More... | |
Define the way to compare current real-values and the new one (candidates). It's encapsulated in different abstraction to allow configure the direction of optimization, i.e. max or min.
Definition at line 26 of file Extremum.cs.
QuantConnect.Optimizer.Objectives.Extremum.Extremum | ( | Func< decimal, decimal, bool > | comparer | ) |
Create an instance of Extremum to compare values.
comparer | The way old and new values should be compared |
Definition at line 34 of file Extremum.cs.
bool QuantConnect.Optimizer.Objectives.Extremum.Better | ( | decimal | current, |
decimal | candidate | ||
) |
Compares two values; identifies whether condition is met or not.
current | Left operand |
candidate | Right operand |