mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
21 lines
349 B
C++
21 lines
349 B
C++
|
#pragma once
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <vector>
|
||
|
#include <algorithm>
|
||
|
|
||
|
|
||
|
namespace DB
|
||
|
{
|
||
|
|
||
|
typedef struct _ABTestResult
|
||
|
{
|
||
|
std::vector<double> beats_control;
|
||
|
std::vector<double> best;
|
||
|
} ABTestResult;
|
||
|
|
||
|
template <bool higher_is_better>
|
||
|
ABTestResult bayesian_ab_test(std::string distribution, std::vector<double> xs, std::vector<double> ys);
|
||
|
|
||
|
}
|