#pragma once #include #if !defined(ARCADIA_BUILD) && USE_STATS #include #include #include #include #include namespace DB { typedef struct _Variant { Float64 x; Float64 y; Float64 beats_control; Float64 best; } Variant; using Variants = PODArray; template Variants bayesian_ab_test(String distribution, PODArray & xs, PODArray & ys); String convertToJson(const PODArray & variant_names, const Variants & variants); } #endif