MCPcopy Create free account
hub / github.com/cwida/ALP / init

Method init

include/alp/encoder.hpp:420–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 static inline void
421 init(const PT* data_column, const size_t column_offset, const size_t tuples_count, PT* sample_arr, state<PT>& stt) {
422 stt.scheme = Scheme::ALP;
423 stt.sampled_values_n = sampler::first_level_sample<PT>(data_column, column_offset, tuples_count, sample_arr);
424 stt.k_combinations = config::MAX_K_COMBINATIONS;
425 stt.best_k_combinations.clear();
426 find_top_k_combinations(sample_arr, stt);
427 }
428};
429
430} // namespace alp

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected