Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::ProximityCombiner::WeightedSum Class Reference

#include <MultiFeature.h>

Inheritance diagram for prapi::ProximityCombiner::WeightedSum:

prapi::ProximityCombiner Object List of all members.

Detailed Description

A simple combiner that returns a weighted sum of the given proximities.

This combiner is useful when you need to scale your distance measures. See ProximityMatrix for an explanation on how to perform this. The functionality provided by the weighted sum combiner can be obtained using a ProximityMultiplier for each proximity measure.

See also:
ProximityMatrix , ProximityMultiplier


Public Methods

 WeightedSum ()
virtual ~WeightedSum ()
void setWeight (int index, double weight)
 Set the weight for a given proximity index.

double getWeight (int index)
 Get the weight for a given feature index.

double combine (const List< double > &proximities)


Member Function Documentation

void prapi::ProximityCombiner::WeightedSum::setWeight int    index,
double    weight
[inline]
 

Set the weight for a given proximity index.

Parameters:
the  index of the proximity to be weighted
weight  the weight. Default value is 1.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.