#include <VectorTransform.h>
Public Member Functions | |
CenteringTransform (int d=0) | |
void | train (Index::idx_t n, const float *x) override |
train on n vectors. | |
void | apply_noalloc (idx_t n, const float *x, float *xt) const override |
subtract the mean | |
void | reverse_transform (idx_t n, const float *xt, float *x) const override |
add the mean | |
![]() | |
VectorTransform (int d_in=0, int d_out=0) | |
! output dimension | |
float * | apply (idx_t n, const float *x) const |
Public Attributes | |
std::vector< float > | mean |
Mean, size d_in = d_out. | |
![]() | |
int | d_in |
int | d_out |
! input dimension | |
bool | is_trained |
Additional Inherited Members | |
![]() | |
typedef Index::idx_t | idx_t |
Subtract the mean of each component from the vectors.
Definition at line 249 of file VectorTransform.h.