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
7
NameList
*NameList_append(
NameList
*self,
const
char
*name);
8
void
NameList_free(
NameList
*self);
9
int
NameList_size(
NameList
*self);
10
void
NameList_print(
NameList
*self, FILE *fp);
11
int
State_npoints(
State
*self);
12
int
State_nparameters(
State
*self);
13
State
*State_new(
int
npts,
int
npar);
14
void
State_free(
State
*self);
15
State
*State_read(
const
char
*fname,
int
npar,
const
char
*
const
*name);
16
State
*State_readList(
NameList
*list,
int
npts,
int
npar,
const
char
*
const
*name);
17
int
State_print(
State
*self, FILE *fp);
18
int
State_setName
(
State
*self,
int
ndx,
const
char
*name);
19
void
State_setVector(
State
*self,
int
ndx,
int
dim,
double
x[dim]);
20
int
State_getVector(
State
*self,
int
ndx,
int
dim,
double
x[dim]);
21
void
State_setCost(
State
*self,
int
ndx,
double
cost);
22
double
State_getCost(
State
*self,
int
ndx);
23
24
#endif
State_setName
int State_setName(State *self, int ndx, const char *name)
Set name of parameter with index "ndx".
Definition:
state.c:332
NameList
Definition:
state.c:52
State
Definition:
state.c:57
Generated on Fri Mar 17 2023 17:45:47 for Legofit by
1.9.4