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

Download this file

27 lines (19 with data), 423 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
#include <config.h>
#include "LogFact.h"
#include <JRmath.h>
using std::vector;
namespace jags {
namespace bugs {
LogFact::LogFact ()
: ScalarFunction ("logfact", 1)
{
}
double LogFact::evaluate(vector<double const *> const &args) const
{
return lgammafn(*args[0] + 1);
}
bool LogFact::checkParameterValue(vector<double const *> const &args) const
{
return *args[0] > -1;
}
}}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks