mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
32 lines
552 B
C++
32 lines
552 B
C++
#if !defined(ARCADIA_BUILD)
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <algorithm>
|
|
|
|
#include <Core/Types.h>
|
|
#include <Common/PODArray.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
typedef struct _Variant
|
|
{
|
|
Float64 x;
|
|
Float64 y;
|
|
Float64 beats_control;
|
|
Float64 best;
|
|
} Variant;
|
|
|
|
using Variants = PODArray<Variant>;
|
|
|
|
template <bool higher_is_better>
|
|
Variants bayesian_ab_test(String distribution, PODArray<Float64> & xs, PODArray<Float64> & ys);
|
|
|
|
String convertToJson(const PODArray<String> & variant_names, const Variants & variants);
|
|
|
|
}
|
|
#endif
|