Skip to content

sam::OptionalStopping

Module: Hacking Strategies

More...

#include <HackingStrategy.h>

Inherits from sam::HackingStrategy

Public Classes

Name
struct Parameters

Public Functions

Name
OptionalStopping() =default
OptionalStopping(const Parameters & p)
void addObservations(Experiment * experiment, const arma::Row< int > & ns)
Adds new observations to each group.

Public Attributes

Name
Parameters params
PolicyChain stopping_condition

Additional inherited members

Public Functions inherited from sam::HackingStrategy

Name
virtual ~HackingStrategy() =0
Pure destructor of the Base class. This is important for proper deconstruction of Derived classes.
HackingStrategy()
void operator()(Experiment * experiment)
float defensibility() const
float prevalence() const
HackingStage stage() const
HackingTarget target() const
std::unique_ptr< HackingStrategy > build(json & hacking_strategy_config)
Factory method for building a HackingStrategy.

Public Attributes inherited from sam::HackingStrategy

Name
sol::state lua
std::optional< float > defensibility_
std::optional< float > prevalence_
HackingStage stage_
HackingTarget target_

Detailed Description

class sam::OptionalStopping;

Declaration of OptionalStopping hacking strategy

Public Functions Documentation

function OptionalStopping

OptionalStopping() =default

function OptionalStopping

inline explicit OptionalStopping(
    const Parameters & p
)

function addObservations

void addObservations(
    Experiment * experiment,
    const arma::Row< int > & ns
)

Adds new observations to each group.

Parameters:

  • experiment The pointer to the Experiment
  • ns Indicates the number of new observations to be added to each group.

Adds new observations to every group.

Public Attributes Documentation

variable params

Parameters params;

variable stopping_condition

PolicyChain stopping_condition;

Updated on 29 June 2021 at 16:13:47 CEST


Last update: 2021-09-18