[082b02]: src / modules / bugs / functions / Logit.h  Maximize  Restore  History

Download this file

28 lines (22 with data), 516 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef FUNC_LOGIT_H_
#define FUNC_LOGIT_H_
#include <function/ScalarFunction.h>
namespace jags {
namespace bugs {
/**
* @short Logistic function
* @see ILogit
* <pre>
* y <- logit(p)
* y = log(p/(1-p)) for 0 < p < 1
* </pre>
*/
class Logit:public ScalarFunction
{
public:
Logit();
double evaluate(std::vector <double const *> const &args) const;
bool checkParameterValue(std::vector<double const *> const &args) const;
};
}}
#endif /* FUNC_LOGIT_H_ */