Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

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

Download this file

LogFact.h    29 lines (23 with data), 554 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
28
#ifndef FUNC_LOGFACT_H_
#define FUNC_LOGFACT_H_
#include <function/ScalarFunction.h>
namespace jags {
namespace bugs {
/**
* @short Log factorial function
* @see LogGamma
* <pre>
* y <- logfact(x)
* y = x!
* = log(gamma(x + 1)) for x > -1
* </pre>
*/
class LogFact : public ScalarFunction
{
public:
LogFact ();
double evaluate(std::vector<double const *> const &args) const;
bool checkParameterValue(std::vector<double const *> const &args) const;
};
}}
#endif /* FUNC_LOGFACT_H_ */