Legofit
infers population history from nucleotide site patterns.
state.h
1#ifndef ARR_STATE_H
2#define ARR_STATE_H
3
4#include "typedefs.h"
5#include <stdio.h>
6
7NameList *NameList_append(NameList *self, const char *name);
8void NameList_free(NameList *self);
9int NameList_size(NameList *self);
10void NameList_print(NameList *self, FILE *fp);
11int State_npoints(State *self);
12int State_nparameters(State *self);
13State *State_new(int npts, int npar);
14void State_free(State *self);
15State *State_read(const char *fname, int npar, const char * const *name);
16State *State_readList(NameList *list, int npts, int npar, const char * const *name);
17int State_print(State *self, FILE *fp);
18int State_setName(State *self, int ndx, const char *name);
19void State_setVector(State *self, int ndx, int dim, double x[dim]);
20int State_getVector(State *self, int ndx, int dim, double x[dim]);
21void State_setCost(State *self, int ndx, double cost);
22double State_getCost(State *self, int ndx);
23
24#endif
int State_setName(State *self, int ndx, const char *name)
Set name of parameter with index "ndx".
Definition: state.c:332
Definition: state.c:52
Definition: state.c:57