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

Model of the two-dimensional data points. More...

#include <scatter_model.h>

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

Public Member Functions

void update (const ScaledData &d, const LandmarkModel &lm, const TrainingConfig &tc, FrameStats &frame_stats)
 Recomputes the coordinates if any of the the parameters of the embedsom algorithm has changed. More...
 
void touch_config ()
 Notifies Sweeper that the parameters of the embedsom algorithm has been modified and that the coordinates has to be recomputed. 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 Attributes

std::vector< glm::vec2 > points
 Coordinates of the two-dimensional data points. More...
 
Cleaner lm_watch
 
BatchSizeGen batch_size_gen
 
- Public Attributes inherited from Sweeper
size_t begin
 
size_t dirts
 
- Public Attributes inherited from Cleaner
int cleaned
 

Detailed Description

Model of the two-dimensional data points.

Definition at line 41 of file scatter_model.h.

Member Function Documentation

◆ touch_config()

void ScatterModel::touch_config ( )
inline

Notifies Sweeper that the parameters of the embedsom algorithm has been modified and that the coordinates has to be recomputed.

Definition at line 73 of file scatter_model.h.

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

◆ update()

void ScatterModel::update ( const ScaledData d,
const LandmarkModel lm,
const TrainingConfig tc,
FrameStats frame_stats 
)

Recomputes the coordinates if any of the the parameters of the embedsom algorithm has changed.

Parameters
dScaled data used for recomputation.
lmLandmark model used for recomputation.
tcDynamic parameters of the algorithms set in the GUI.

Definition at line 28 of file scatter_model.cpp.

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

Member Data Documentation

◆ batch_size_gen

BatchSizeGen ScatterModel::batch_size_gen

Definition at line 52 of file scatter_model.h.

◆ lm_watch

Cleaner ScatterModel::lm_watch

Definition at line 50 of file scatter_model.h.

◆ points

std::vector<glm::vec2> ScatterModel::points

Coordinates of the two-dimensional data points.

Definition at line 44 of file scatter_model.h.


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