BlosSOM
Interactive dimensionality reduction on large datasets (EmbedSOM and FLOWER combined)
Public Member Functions | Public Attributes | List of all members
ScaledData Struct Reference

Storage of the scaled data. More...

#include <scaled_data.h>

Inheritance diagram for ScaledData:
Inheritance graph
[legend]
Collaboration diagram for ScaledData:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from Sweeper
 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...
 
- Public Member Functions inherited from Cleaner
 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...
 
- Public Member Functions inherited from Dirts
 Dirts (size_t n=0)
 Number of objects that should be cached. More...
 
- Public Member Functions inherited from Dirt
 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< ScaleConfigconfig
 Separate configurations for each dimension. More...
 
BatchSizeGen batch_size_gen
 
- Public Attributes inherited from Sweeper
size_t begin
 
size_t dirts
 
- Public Attributes inherited from Cleaner
int cleaned
 
- Public Attributes inherited from Dirts
size_t n
 
- Public Attributes inherited from Dirt
int dirt
 

Detailed Description

Storage of the scaled data.

Definition at line 50 of file scaled_data.h.

Member Function Documentation

◆ dim()

size_t ScaledData::dim ( ) const
inline

Returns dimension of the scaled data.

Returns
size_t Dimension of the scaled data.

Definition at line 66 of file scaled_data.h.

Here is the caller graph for this function:

◆ reset()

void ScaledData::reset ( )

Resets configurations to their initial values.

Definition at line 79 of file scaled_data.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ touch_config()

void ScaledData::touch_config ( )
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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

void ScaledData::update ( const TransData td,
FrameStats frame_stats 
)

Recomputes the data if any of the config has been touched.

Parameters
tdTransformed data received from the data flow pipeline.

Definition at line 25 of file scaled_data.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ batch_size_gen

BatchSizeGen ScaledData::batch_size_gen

Definition at line 59 of file scaled_data.h.

◆ config

std::vector<ScaleConfig> ScaledData::config

Separate configurations for each dimension.

Definition at line 57 of file scaled_data.h.

◆ data

std::vector<float> ScaledData::data

Scaled data in the same format as DataModel::data.

Definition at line 55 of file scaled_data.h.


The documentation for this struct was generated from the following files: