file 1.0.4/1.0.4/diver.hpp

[No description available] More…

Namespaces

Name
Gambit
TODO: see if we can use this one:
Gambit::Diver_1_0_4

Classes

Name
structGambit::Diver_1_0_4::diverScanData
Structure for passing likelihood and printer data through Diver to the objective function.

Functions

Name
voidcdiver(double(*)(double[], const int, int &, bool &, const bool, void &) , int , const double [], const double [], const char [], int , int , const int [], bool , const int , const int , int , int , const double [], double , double , bool , bool , int , bool , bool , double , int , bool , bool , double()(const double[], const int, void *&) , double , double , int , bool , bool , int , int , double , int , void *& , int )

Detailed Description

Author: Pat Scott (p.scott@imperial.ac.uk)

Date: 2017 June

ScannerBit interface to Diver 1.0.2

Header file


Authors (add name and date if you modify):


Functions Documentation

function cdiver

void cdiver(
    double(*)(double[], const int, int &, bool &, const bool, void *&) ,
    int ,
    const double [],
    const double [],
    const char [],
    int ,
    int ,
    const int [],
    bool ,
    const int ,
    const int ,
    int ,
    int ,
    const double [],
    double ,
    double ,
    bool ,
    bool ,
    int ,
    bool ,
    bool ,
    double ,
    int ,
    bool ,
    bool ,
    double(*)(const double[], const int, void *&) ,
    double ,
    double ,
    int ,
    bool ,
    bool ,
    int ,
    int ,
    double ,
    int ,
    void *& ,
    int 
)

Source code

//  GAMBIT: Global and Modular BSM Inference Tool
//  *********************************************
///  \file
///
///  ScannerBit interface to Diver 1.0.2
///
///  Header file
///
///  *********************************************
///
///  Authors (add name and date if you modify):
///
///  \author Pat Scott
///          (p.scott@imperial.ac.uk)
///  \date 2017 June
///
///  *********************************************

#ifndef __diver_hpp__
#define __diver_hpp__

#include "gambit/ScannerBit/scanner_plugin.hpp"

// C++ prototype of the main run_de function for Diver.
extern "C" void cdiver(double (*)(double[], const int, int&, bool&, const bool, void*&), int, const double[], const double[],
               const char[], int, int, const int[], bool, const int, const int, int, int, const double[], double,
               double, bool, bool, int, bool, bool, double, int, bool, bool, double(*)(const double[], const int, void*&),
               double, double, int, bool, bool, int, int, double, int, void*&, int);

namespace Gambit
{

  namespace Diver_1_0_4
  {

    /// Structure for passing likelihood and printer data through Diver to the objective function.
    struct diverScanData
    {
      Scanner::like_ptr likelihood_function;
      Scanner::printer_interface* printer;
    };

    /// Function to be minimised by Diver
    double objective(double params[], const int param_dim, int &fcall, bool &quit, const bool validvector, void*& context);

  }

}

#endif // #defined __diver_hpp__

Updated on 2023-06-26 at 21:36:53 +0000