pyrevs.strategies.montecarlo.extension

An extension class for the MonteCarlo strategy.

Attributes

Classes

MCDatabaseExtension

An extension class for the MonteCarlo strategy.

Module Contents

T_Noise[source]
T_State[source]
class MCDatabaseExtension[source]

Bases: pyrevs.database.StrategyDatabaseExtension

An extension class for the MonteCarlo strategy.

The Monte-Carlo strategy has minimal extension requirements. It mostly provides a concrete implementation of the event probability computation method.

It only holds a reference to the core trajectory database.

Variables:

_tdb – the core trajectory database

initialize(tdb: pyrevs.database.Database) None[source]

Initialize the AMS database extension.

Parameters:

tdb – the core trajectory database

initialize_from_database(tdb: pyrevs.database.Database) None[source]

Initialize the AMS database extension.

Parameters:

tdb – the core trajectory database

serialize() None[source]

Serialize the extension.

deserialize() None[source]

Serialize the extension.

get_event_probability() float[source]

Return the event probability.