29 float time = actual_time;
void graph_layout_step(GraphLayoutData &data, bool vert_pressed, int vert_ind, LandmarkModel &lm, float time)
One iteration step of the landmark layouting algorithm.
void kmeans_landmark_step(KMeansData &data, const ScaledData &model, size_t iters, float alpha, float gravity, LandmarkModel &lm)
Run a k-means-like optimization of high-dimensional landmark positions.
void som_landmark_step(KMeansData &data, const ScaledData &model, size_t iters, float alpha, float sigma, LandmarkModel &lm)
Run a SOM to optimize high-dimensional landmark positions.
void make_knn_edges(KnnEdgesData &data, LandmarkModel &landmarks, const size_t kns)
void update(const TransData &td, const LandmarkModel &lm, FrameStats &frame_stats)
Recomputes color of the 2D data points if user has changed any of the color settings.
void update_times()
Compute durations of the estimation batch sizes computations.
void update_dim(size_t dim)
Updates current dimension and calls init_grid().
void update(const DataModel &dm)
Recomputes the statistics if the input data changed.
void update(const TransData &td, FrameStats &frame_stats)
Recomputes the data if any of the config has been touched.
size_t dim() const
Returns dimension of the scaled data.
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.
void update(float time, bool vert_pressed, int vert_ind)
Performs simulation steps of all active algorithms and updates data according to the user interaction...
GraphLayoutData layout_data
TrainingConfig training_conf
float sigma
Sigma value for SOM algorithm.
int kmeans_iters
Number of iterations value for kmeans algorithm.
float som_alpha
Alpha value for SOM algorithm.
bool tsne_layout
Flag that indicates if the t-SNE algorithm should be used.
int kns
k-neighbors value for generating knn graph algorithm.
int som_iters
Number of iterations value for SOM algorithm.
float gravity
Gravity value for kmeans algorithm.
bool graph_layout
Flag that indicates if the graph layout algorithm should be used.
float kmeans_alpha
Alpha value for kmeans algorithm.
bool som_landmark
Flag that indicates if the SOM algorithm should be used.
bool kmeans_landmark
Flag that indicates if the kmeans algorithm should be used.
bool knn_edges
Flag that indicates if the kNN graph should be generated.
void update(const DataModel &dm, const RawDataStats &s, FrameStats &frame_stats)
Recomputes the data if any of the config has been touched.
void tsne_layout_step(TSNELayoutData &data, bool vert_pressed, int vert_ind, LandmarkModel &lm, float time)
Optimize the positions of low-dimensional landmarks using the t-SNE algorithm.