INGOR
|
#include <score/Score.h>
Public Member Functions | |
Score * | Score_get (const char *name) |
Returns the specified score function. | |
Public Attributes | |
char * | name |
Score name. | |
void *(* | init )(ytData *data, ytKeyValues *args) |
Initializer. | |
double(* | score )(void *buff, const int j, const int *parents, const int q) |
Score function. | |
void(* | reinit )(void *buff, ytData *data) |
Re-initializer. | |
void(* | cache )(void *buff, int on) |
Enable and/or disable cache. | |
void(* | edgeProp )(void *buff, const int j, const int *parents, const int q, const int k, ytEdge *edge) |
void(* | nodeProp )(void *buff, int i, ytNode *node) |
void(* | finalize )(void *buff) |
void(* | partialResidual )(void *buff, const int j, const int *parents, const int q, FILE **fp, double *ll) |
void(* | setEdgeProp )(void *buff, const int j, const int *parents, const int q, const int k, const ytEdge *edge) |
void(* | setNodeProp )(void *buff, const int j, const ytNode *node) |
void(* | status )(void *buff) |
void(* | setParam )(void *buff, const char *key, ytObject *value) |
void * | buff |
Pointer to the score buffer that is used by the score functions. | |
This class defines the interface of score functions.
Currently available score functions are: BNRC and BNDC.
Score * Score_get | ( | const char * | name | ) |
Returns the specified score function.
The returned instance of the Score structure has several functions (methods) and a pointer to the score buffer (Score::buff).
name | Name of the score function to return. |