#include "CDenseVector.h"
#include "CMatrix.h"
#include "CMetric.h"
#include "CDataset.h"
#include "CDatasetItem.h"
#include <vector>
#include <algorithm>
#include <ctime>
#include <iostream>
#include "CObject.h"
Go to the source code of this file.
|
template<class Type > |
CDenseVector< Type > | minElements (const CDataset< Type > &tDs) |
|
template<class Type > |
CDenseVector< Type > | maxElements (const CDataset< Type > &tDs) |
|
template<class Type > |
CDataset< Type > | centerInput (const CDataset< Type > &tDs, CDenseVector< Type > &tMean) |
|
template<class Type > |
CDataset< Type > | zscore (const CDataset< Type > &tDs, CDenseVector< Type > &tMean, CDenseVector< Type > &tVariance) |
|
template<class Type > |
CDataset< Type > | applyZScore (const CDataset< Type > &tDs, const CDenseVector< Type > &tMean, const CDenseVector< Type > &tVariance) |
|
template<class Type > |
CDenseVector< Type > | applyZScore (const CDenseVector< Type > &tDs, const CDenseVector< Type > &tMean, const CDenseVector< Type > &tVariance) |
|
template<class Type > |
CDataset< Type > | scaleRange (const CDataset< Type > &tDs, const CDenseVector< Type > tNewMin, const CDenseVector< Type > tNewMax, CDenseVector< Type > &tShift, CDenseVector< Type > &tScale) |
|
template<class Type > |
CDataset< Type > | applyScaleRange (const CDataset< Type > &tDs, const CDenseVector< Type > &tShift, const CDenseVector< Type > &tScale) |
|
template<class Type > |
CDenseVector< Type > | applyScaleRange (const CDenseVector< Type > &tDs, const CDenseVector< Type > &tShift, const CDenseVector< Type > &tScale) |
|
template<class Type > |
CDataset< Type > | normalize (const CDataset< Type > &rtDs, const CMetric< Type > &rtMetric) |
|
template<class Type > |
CDataset< Type > | removeProjection (const CDataset< Type > &rtDataset, const CDenseVector< Type > &rtVec) |
|
template<class Type > |
void | applyWeights (CDataset< Type > &rtDataset, const CDenseVector< Type > &rtWeights) |
|
template<class Type > |
void | normalizeInputDataEuclidean (CDataset< Type > &rtDs) |
|
Scales each component of the input data to the range given by tNewMin and tNewMax. In contrast to scaleRange(..), this function uses shift and scale given by the functions parameters
- Parameters
-
tDs | Dataset |
tShift | Shift vector |
tScale | Scale vector |
- Returns
- dataset
Scales each component of the input data to the range given by tNewMin and tNewMax. In contrast to scaleRange(..), this function uses shift and scale given by the functions parameters
- Parameters
-
tDs | Dataset |
tShift | Shift vector |
tScale | Scale vector |
- Returns
- dataset
Apply a weight vector by scaling each (input) component with desired factor.
- Parameters
-
rtDataset | Reference to a dataset object. |
rtWeights | weight vector. |
Normalizes data to zero mean and zero variance. In contrast to zscore(..), this function uses the mean and variance given by the function's parameters.
- Parameters
-
tDs | Dataset |
tMean | Mean vector |
tVariance | Variance vector |
- Returns
- dataset
Normalizes data to zero mean and zero variance. In contrast to zscore(..), this function uses the mean and variance given by the function's parameters.
- Parameters
-
tDs | Vector |
tMean | Mean vector |
tVariance | Variance vector |
- Returns
- dataset
Normalizes data to zero mean
- Parameters
-
tDs | Dataset |
tMean | To be filled with subracted mean |
- Returns
- Centered dataset
Find the minimal element of each component of the input vectors
- Parameters
-
- Returns
- Vector with minimal elements
Find the maximal element of each component of the input vectors
- Parameters
-
- Returns
- Vector with maximal elements
Normalizes the length of each (input) vector according to a given metric (using a vector with zero components).
- Parameters
-
rtDataset | Reference to a dataset object. |
rtMetric | Reference to a metric object. |
template<class Type >
void normalizeInputDataEuclidean |
( |
CDataset< Type > & |
rtDs | ) |
|
Normalizes the euclidean length of each (input) vector
Removes the projection of rtVec from all vectors in the dataset.
- Parameters
-
rtDataset | Reference to a dataset object. |
rtVec | Reference to a the vector which should be eliminated |
Scales each component of the input data to the range given by tNewMin and tNewMax
- Parameters
-
tDs | Dataset |
tNewMin | New min values of the input components |
tNewMax | New max values of the input components |
tShift | To filled with shift vector |
tScale | To filled with scale vector |
- Returns
- dataset
Normalizes data to zero mean and zero variance
- Parameters
-
tDs | Dataset |
tMean | To be filled with subracted mean |
tVariance | To be filled with variance |
- Returns
- Centered dataset