Lean
$LEAN_TAG$
|
Creates a benchmark defined by a function More...
Public Member Functions | |
FuncBenchmark (Func< DateTime, decimal > benchmark) | |
Initializes a new instance of the FuncBenchmark class More... | |
FuncBenchmark (PyObject pyFunc) | |
Create a function benchmark from a Python function More... | |
decimal | Evaluate (DateTime time) |
Evaluates this benchmark at the specified time More... | |
Creates a benchmark defined by a function
Definition at line 24 of file FuncBenchmark.cs.
QuantConnect.Benchmarks.FuncBenchmark.FuncBenchmark | ( | Func< DateTime, decimal > | benchmark | ) |
Initializes a new instance of the FuncBenchmark class
benchmark | The functional benchmark implementation |
Definition at line 32 of file FuncBenchmark.cs.
QuantConnect.Benchmarks.FuncBenchmark.FuncBenchmark | ( | PyObject | pyFunc | ) |
Create a function benchmark from a Python function
pyFunc |
Definition at line 45 of file FuncBenchmark.cs.
decimal QuantConnect.Benchmarks.FuncBenchmark.Evaluate | ( | DateTime | time | ) |
Evaluates this benchmark at the specified time
time | The time to evaluate the benchmark at |
Implements QuantConnect.Benchmarks.IBenchmark.
Definition at line 58 of file FuncBenchmark.cs.