BlosSOM
Interactive dimensionality reduction on large datasets (EmbedSOM and FLOWER combined)
|
Storage of the scaled data. More...
#include <scaled_data.h>
Public Member Functions | |
size_t | dim () const |
Returns dimension of the scaled data. More... | |
void | touch_config () |
Notifies Sweeper that the config has been modified and that the data has to be recomputed. More... | |
void | update (const TransData &td, FrameStats &frame_stats) |
Recomputes the data if any of the config has been touched. More... | |
void | reset () |
Resets configurations to their initial values. More... | |
![]() | |
Sweeper () | |
void | refresh (const Dirts &d) |
Force-refresh the whole range. More... | |
void | refresh (size_t n_dirts) |
std::tuple< size_t, size_t > | dirty_range (const Dirts &d) |
Find the range to refresh. More... | |
void | clean_range (const Dirts &d, size_t n) |
Clean a range of the cache. More... | |
![]() | |
Cleaner () | |
bool | dirty (const Dirt &d) |
Returns true if the cache needs to be refreshed. More... | |
void | clean (const Dirt &d) |
Call this when the cache is refreshed. More... | |
![]() | |
Dirts (size_t n=0) | |
Number of objects that should be cached. More... | |
![]() | |
Dirt () | |
void | touch () |
Make the cache dirty. More... | |
Public Attributes | |
std::vector< float > | data |
Scaled data in the same format as DataModel::data. More... | |
std::vector< ScaleConfig > | config |
Separate configurations for each dimension. More... | |
BatchSizeGen | batch_size_gen |
![]() | |
size_t | begin |
size_t | dirts |
![]() | |
int | cleaned |
![]() | |
size_t | n |
![]() | |
int | dirt |
Storage of the scaled data.
Definition at line 50 of file scaled_data.h.
|
inline |
Returns dimension of the scaled data.
Definition at line 66 of file scaled_data.h.
void ScaledData::reset | ( | ) |
Resets configurations to their initial values.
Definition at line 79 of file scaled_data.cpp.
|
inline |
Notifies Sweeper that the config has been modified and that the data has to be recomputed.
Definition at line 73 of file scaled_data.h.
void ScaledData::update | ( | const TransData & | td, |
FrameStats & | frame_stats | ||
) |
Recomputes the data if any of the config has been touched.
td | Transformed data received from the data flow pipeline. |
Definition at line 25 of file scaled_data.cpp.
BatchSizeGen ScaledData::batch_size_gen |
Definition at line 59 of file scaled_data.h.
std::vector<ScaleConfig> ScaledData::config |
Separate configurations for each dimension.
Definition at line 57 of file scaled_data.h.
std::vector<float> ScaledData::data |
Scaled data in the same format as DataModel::data.
Definition at line 55 of file scaled_data.h.