namespace Gambit::ExampleBit_A

[No description available]

Functions

Name
doublesome_other_function(int & input)
Some other example function.
doublelogf(double x, double mu, double sig)
Un-normalised gaussian log-likelihood.
voidnevents_pred(double & result)
voidnevents_like(double & result)
voidparticle_identity(str & result)
voidnevents_pred_rounded(int & result)
voidtest_sigma(double & result)
voidfunction_pointer_retriever(double(*&)(int &) result)
voidexample_damu(double & result)
Example of interacting with models.
voidlnL_gaussian(double & result)
voideventLoopManager()
Run a fake ’event loop'.
voidexampleEventGen(float & result)
Produces a random floating-point ’event count’ between 0 and 5.
voidexampleCut(int & result)
Rounds an event count to the nearest integer.
voideventAccumulator(int & result)
Adds an integral event count to a total number of accumulated events.
voiddo_Farray_stuff(double & result)
voidlocal_xsection(double & result)
voidlarge_print(std::map< std::string, double > & result)
voidmarg_poisson_test(double & result)
Test inline marginalisation of a Poisson likelihood over a log-normally or Gaussianly-distributed nuisance parameter.
voidBackend_array_test(double & result)
Tester for C/C++ backend array interfaces.
voidflat_likelihood(double & result)
Flat test likelihood for checking prior distributions.
voidconst_one(int & result)
A function that just returns 1.
voidrecursive_add_1(int & result)
Chained addition function that adds 1.
voidrecursive_add_2(int & result)
Chained addition function that adds 2.
voidrecursive_add_3(int & result)
Chained addition function that adds 3.
voidrecursive_add_4(int & result)
Chained addition function that adds 4.

Attributes

Name
double(*)(int &, const double &)callback_pointer
Pointer to some function.

Functions Documentation

function some_other_function

double some_other_function(
    int & input
)

Some other example function.

function logf

double logf(
    double x,
    double mu,
    double sig
)

Un-normalised gaussian log-likelihood.

function nevents_pred

void nevents_pred(
    double & result
)

function nevents_like

void nevents_like(
    double & result
)

function particle_identity

void particle_identity(
    str & result
)

function nevents_pred_rounded

void nevents_pred_rounded(
    int & result
)

function test_sigma

void test_sigma(
    double & result
)

function function_pointer_retriever

void function_pointer_retriever(
    double(*&)(int &) result
)

function example_damu

void example_damu(
    double & result
)

Example of interacting with models.

function lnL_gaussian

void lnL_gaussian(
    double & result
)

Likelihood function for fitting the population parameters of a normal distribution (with hard-coded “observations”) Mainly used for testing scanning algorthims

function eventLoopManager

void eventLoopManager()

Run a fake ’event loop'.

function exampleEventGen

void exampleEventGen(
    float & result
)

Produces a random floating-point ’event count’ between 0 and 5.

function exampleCut

void exampleCut(
    int & result
)

Rounds an event count to the nearest integer.

function eventAccumulator

void eventAccumulator(
    int & result
)

Adds an integral event count to a total number of accumulated events.

function do_Farray_stuff

void do_Farray_stuff(
    double & result
)

function local_xsection

void local_xsection(
    double & result
)

function large_print

void large_print(
    std::map< std::string, double > & result
)

Scale test for various aspects of the printer buffer system Creates 1000 items to be printed per point

function marg_poisson_test

void marg_poisson_test(
    double & result
)

Test inline marginalisation of a Poisson likelihood over a log-normally or Gaussianly-distributed nuisance parameter.

function Backend_array_test

void Backend_array_test(
    double & result
)

Tester for C/C++ backend array interfaces.

function flat_likelihood

void flat_likelihood(
    double & result
)

Flat test likelihood for checking prior distributions.

function const_one

void const_one(
    int & result
)

A function that just returns 1.

function recursive_add_1

void recursive_add_1(
    int & result
)

Chained addition function that adds 1.

function recursive_add_2

void recursive_add_2(
    int & result
)

Chained addition function that adds 2.

function recursive_add_3

void recursive_add_3(
    int & result
)

Chained addition function that adds 3.

function recursive_add_4

void recursive_add_4(
    int & result
)

Chained addition function that adds 4.

Attributes Documentation

variable callback_pointer

double(*)(int &, const double &) callback_pointer;

Pointer to some function.


Updated on 2024-07-18 at 13:53:31 +0000