src/transform_functions.cpp
/**
 * Logicle tranform/inverse transform wrapper function, makes use of the Logicle
 *  class provided Wayne Moore for the underlying calculation of the transformation.
 *
 * */
Logicle tranform/inverse transform wrapper function, makes use of the Logicle
class provided Wayne Moore for the underlying calculation of the transformation.
Logicle tranform / inverse transform wrapper function makes use of the Logicle class provided Wayne Moore for the underlying calculation of the transformation .
std::vector<double> logicle_transform(std::vector<double> input, double T,
					double W, double M, double A,
					bool isInverse)
{
	long unsigned int nLen = input.size();
	Logicle lg = Logicle(T, W, M, A);
	for (long unsigned int i = 0; i < nLen; i++) {
		if(std::isnan(input.at(i)))
			continue;
		if(isInverse)
			input.at(i) = lg.inverse(input.at(i));
		else
			input.at(i) = lg.scale(input.at(i));
	}
	return(input);
}
std :: vector < double > logicle_transform ( std :: vector < double > input , double T , double W , double M , double A , bool isInverse ) { long unsigned int nLen = input . size ( ) ; Logicle lg = Logicle ( T , W , M , A ) ; for ( long unsigned int i = 0 ; i < nLen ; i ++ ) { if ( std :: isnan ( input . at ( i ) ) ) continue ; if ( isInverse ) input . at ( i ) = lg . inverse ( input . at ( i ) ) ; else input . at ( i ) = lg . scale ( input . at ( i ) ) ; } return ( input ) ; }
Logicle tranform/inverse transform wrapper function, makes use of the Logicle
  class provided Wayne Moore for the underlying calculation of the transformation.
Logicle tranform / inverse transform wrapper function makes use of the Logicle class provided Wayne Moore for the underlying calculation of the transformation .