Skip to content
Snippets Groups Projects
Commit f0f4bf56 authored by Paloma de la Puente's avatar Paloma de la Puente
Browse files

likelihoods started

parent f023a415
No related branches found
No related tags found
No related merge requests found
#include "MeasurementsLikelihood.h"
MeasurementsLikelihood::MeasurementsLikelihood(int likelihood_function)
{
function_type = likelihood_function;
}
MeasurementsLikelihood::~MeasurementsLikelihood()
{
}
void MeasurementsLikelihood::ComputeLikelihoods(std::vector<double> x_vector)
{
int n = x_vector.size();
if (function_type == L2)
{
for (int i=0;i<n;i++)
{
//double error =
}
}
if (function_type == L1)
{
}
}
#ifndef H_MEASUREMENTSLIKELIHOOD
#define H_MEASUREMENTSLIKELIHOOD
#define L1 1
#define L2 2
#include <csm/csm_all.h>
#include <vector>
struct LValues{
double error;
double grad[];
};
class MeasurementsLikelihood
{
public:
//constructors
MeasurementsLikelihood(int likelihood_function);
virtual ~MeasurementsLikelihood(void);
//class variables
protected:
int function_type;
public:
std::vector<LValues> values_vector;
//methods
public:
void ComputeLikelihoods(std::vector<double> x_vector);
};
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment