Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::api::IndexedRealVector Class Reference

A vector of IndexedReal. More...

#include <IndexedReal.hpp>

List of all members.

Public Member Functions

 IndexedRealVector ()
 IndexedRealVector (int size)
virtual ~IndexedRealVector ()
virtual iterator FindByIndex (int index)
virtual bool IncreaseValueFor (int index, double value)
 increase the value for "index", add the entry if not existing.

virtual void PushValue (int index, double value)
 push a value

virtual void Sort (bool descending=true)
 sort all the values, default is descending order

virtual void NormalizeValues ()
 normalize values in a range (0:1), and sum to 1

virtual void LogToPosterior ()

Static Private Attributes

IndexedRealAscending ascendOrder
IndexedRealDescending descendOrder


Detailed Description

A vector of IndexedReal.


Constructor & Destructor Documentation

lemur::api::IndexedRealVector::IndexedRealVector  )  [inline]
 

lemur::api::IndexedRealVector::IndexedRealVector int  size  )  [inline]
 

virtual lemur::api::IndexedRealVector::~IndexedRealVector  )  [inline, virtual]
 


Member Function Documentation

lemur::api::IndexedRealVector::iterator lemur::api::IndexedRealVector::FindByIndex int  index  )  [virtual]
 

bool lemur::api::IndexedRealVector::IncreaseValueFor int  index,
double  value
[virtual]
 

increase the value for "index", add the entry if not existing.

void lemur::api::IndexedRealVector::LogToPosterior  )  [virtual]
 

consider input values as log(x), mapping to exp(log(x)), and normalize x values in a range (0:1), and sum to 1

void lemur::api::IndexedRealVector::NormalizeValues  )  [virtual]
 

normalize values in a range (0:1), and sum to 1

void lemur::api::IndexedRealVector::PushValue int  index,
double  value
[virtual]
 

push a value

void lemur::api::IndexedRealVector::Sort bool  descending = true  )  [virtual]
 

sort all the values, default is descending order


Member Data Documentation

lemur::api::IndexedRealVector::IndexedRealAscending lemur::api::IndexedRealVector::ascendOrder [static, private]
 

lemur::api::IndexedRealVector::IndexedRealDescending lemur::api::IndexedRealVector::descendOrder [static, private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:05 2010 for Lemur by doxygen 1.3.4