Changeset 1718
 Timestamp:
 Jan 14, 2009, 4:42:57 PM (12 years ago)
 Location:
 trunk/yat/normalizer
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/normalizer/qQuantileNormalizer.cc
r1716 r1718 82 82 : target_(Partitioner(target,Q)) 83 83 { 84 assert(Q>2); // required by cspline fit 84 85 } 85 86 … … 110 111 for (size_t row=start; row<end; ++row) { 111 112 size_t srow=sorted_index[column][row]; 112 result(srow,column) = matrix(srow,column) +diff(0);113 result(srow,column) = matrix(srow,column)  diff(0); 113 114 } 114 115 … … 119 120 for (size_t row=start; row<=end; ++row) { 120 121 size_t srow=sorted_index[column][row]; 121 result(srow,column) = matrix(srow,column) +cspline.evaluate(row) ;122 result(srow,column) = matrix(srow,column)  cspline.evaluate(row) ; 122 123 } 123 124 … … 128 129 for (size_t row=start; row<end; ++row) { 129 130 size_t srow=sorted_index[column][row]; 130 result(srow,column) = matrix(srow,column) +diff(diff.size()1);131 result(srow,column) = matrix(srow,column)  diff(diff.size()1); 131 132 } 132 133 } 
trunk/yat/normalizer/qQuantileNormalizer.h
r1716 r1718 43 43 The normalization goes like this 44 44  Data is not assumed to be sorted. 45  Partition the target data in N parts. 45  Partition the target data in N parts. N must be 3 larger 46 because of requirements from the underlying cspline fit 46 47  Calculate the arithmetic mean for each part, the mean is 47 48 assigned to the mid point of each part. … … 67 68 \brief Documentation please. 68 69 69 \a Q is the number of parts and must be within \f$ [ 2,N] \f$70 \a Q is the number of parts and must be within \f$ [3,N] \f$ 70 71 where \f$ N \f$ is the total number of data points in the 71 72 target. However, if \f$ N \f$ is larger than the number of points … … 73 74 undefined. Keep \f$ N \f$ equal to or less than the smallest 74 75 number of data points in the target or each data set to be 75 normalized against a ginven target. 76 normalized against a ginven target. The lower bound of three is 77 due to restrictions in the cspline fit utilized in the 78 normalization. 76 79 */ 77 80 qQuantileNormalizer(const utility::VectorBase& target, unsigned int Q);
Note: See TracChangeset
for help on using the changeset viewer.