Lean  $LEAN_TAG$
QuantConnect.Benchmarks.FuncBenchmark Class Reference

Creates a benchmark defined by a function More...

Inheritance diagram for QuantConnect.Benchmarks.FuncBenchmark:
[legend]

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...
 

Detailed Description

Creates a benchmark defined by a function

Definition at line 24 of file FuncBenchmark.cs.

Constructor & Destructor Documentation

◆ FuncBenchmark() [1/2]

QuantConnect.Benchmarks.FuncBenchmark.FuncBenchmark ( Func< DateTime, decimal >  benchmark)

Initializes a new instance of the FuncBenchmark class

Parameters
benchmarkThe functional benchmark implementation

Definition at line 32 of file FuncBenchmark.cs.

◆ FuncBenchmark() [2/2]

QuantConnect.Benchmarks.FuncBenchmark.FuncBenchmark ( PyObject  pyFunc)

Create a function benchmark from a Python function

Parameters
pyFunc

Definition at line 45 of file FuncBenchmark.cs.

Member Function Documentation

◆ Evaluate()

decimal QuantConnect.Benchmarks.FuncBenchmark.Evaluate ( DateTime  time)

Evaluates this benchmark at the specified time

Parameters
timeThe time to evaluate the benchmark at
Returns
The value of the benchmark at the specified time

Implements QuantConnect.Benchmarks.IBenchmark.

Definition at line 58 of file FuncBenchmark.cs.


The documentation for this class was generated from the following file: