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

Storage of the transformed data. More...

#include <trans_data.h>

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

Public Member Functions

size_t dim () const
 Returns dimension of the transformed 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 DataModel &dm, const RawDataStats &s, 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
 Transformed data in the same format as DataModel::data. More...
 
std::vector< float > sums
 Array representing sums for each dimension. More...
 
std::vector< float > sqsums
 Array representing square sums for each dimension. More...
 
std::vector< TransConfigconfig
 Separate configurations for each dimension. More...
 
BatchSizeGen batch_size_gen
 
Cleaner stat_watch
 
- 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 transformed data.

Definition at line 71 of file trans_data.h.

Member Function Documentation

◆ dim()

size_t TransData::dim ( ) const
inline

Returns dimension of the transformed data.

Returns
size_t Dimension of the transformed data.

Definition at line 93 of file trans_data.h.

Here is the caller graph for this function:

◆ reset()

void TransData::reset ( )

Resets configurations to their initial values.

Definition at line 128 of file trans_data.cpp.

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

◆ touch_config()

void TransData::touch_config ( )
inline

Notifies Sweeper that the config has been modified and that the data has to be recomputed.

Definition at line 99 of file trans_data.h.

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

◆ update()

void TransData::update ( const DataModel dm,
const RawDataStats s,
FrameStats frame_stats 
)

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

Parameters
dmOriginal data parsed from the input file.
sStatistics from the untransformed dataset.

Definition at line 53 of file trans_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 TransData::batch_size_gen

Definition at line 86 of file trans_data.h.

◆ config

std::vector<TransConfig> TransData::config

Separate configurations for each dimension.

Definition at line 84 of file trans_data.h.

◆ data

std::vector<float> TransData::data

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

Definition at line 76 of file trans_data.h.

◆ sqsums

std::vector<float> TransData::sqsums

Array representing square sums for each dimension.

Definition at line 81 of file trans_data.h.

◆ stat_watch

Cleaner TransData::stat_watch

Definition at line 101 of file trans_data.h.

◆ sums

std::vector<float> TransData::sums

Array representing sums for each dimension.

Definition at line 79 of file trans_data.h.


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