[7feccc]: src / include / function / ArrayLogDensity.h  Maximize  Restore  History

Download this file

34 lines (27 with data), 875 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
29
30
31
32
33
#ifndef ARRAY_LOG_DENSITY_H_
#define ARRAY_LOG_DENSITY_H_
#include <function/ArrayFunction.h>
namespace jags {
class ArrayDist;
/**
* @short Log density function for an array-valued Distribution
*/
class ArrayLogDensity : public ArrayFunction
{
ArrayDist const *_dist;
public:
ArrayLogDensity(ArrayDist const *dist);
std::vector<unsigned int> dim(
std::vector<std::vector<unsigned int> > const &dims) const;
bool checkParameterDim(
std::vector<std::vector<unsigned int> > const &dims) const;
bool checkParameterValue(
std::vector<double const *> const &args,
std::vector<std::vector<unsigned int> > const &dims) const;
void evaluate(
double *value,
std::vector <double const *> const &args,
std::vector<std::vector<unsigned int> > const &dims) const;
};
}
#endif /* ARRAY_LOG_DENSITY_H_ */

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

Sign up for the SourceForge newsletter:





No, thanks