#include <IndexedReal.hpp>
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 |
|
|
|
|
|
|
|
|
|
increase the value for "index", add the entry if not existing.
|
|
consider input values as log(x), mapping to exp(log(x)), and normalize x values in a range (0:1), and sum to 1 |
|
normalize values in a range (0:1), and sum to 1
|
|
push a value
|
|
sort all the values, default is descending order
|
|
|
|
|