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

Download this file

30 lines (23 with data), 807 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
#ifndef VECTOR_LOG_DENSITY_H_
#define VECTOR_LOG_DENSITY_H_
#include <function/VectorFunction.h>
namespace jags {
class VectorDist;
/**
* @short Log density function for a vector-valued Distribution
*/
class VectorLogDensity : public VectorFunction
{
VectorDist const *_dist;
public:
VectorLogDensity(VectorDist const *dist);
unsigned int length(std::vector<unsigned int> const &lengths) const;
bool checkParameterLength(std::vector<unsigned int> const &lens) const;
bool checkParameterValue(std::vector<double const *> const &args,
std::vector<unsigned int> const &lens) const;
void evaluate(double *value,
std::vector <double const *> const &args,
std::vector<unsigned int> const &lens) const;
};
}
#endif /* VECTOR_LOG_DENSITY_H_ */

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks