Loading...
Searching...
No Matches
srho.hpp
1// Copyright © 2020 Thomas Nagler
2//
3// This file is part of the wdm library and licensed under the terms of
4// the MIT license. For a copy, see the LICENSE file in the root directory
5// or https://github.com/tnagler/wdm/blob/master/LICENSE.
6
7#pragma once
8
9#include "prho.hpp"
10#include "ranks.hpp"
11#include "utils.hpp"
12
13namespace wdm {
14
15namespace impl {
16
20inline double
21srho(std::vector<double> x,
22 std::vector<double> y,
23 std::vector<double> weights = std::vector<double>())
24{
25 utils::check_sizes(x, y, weights);
26 x = rank0(x, weights, "average");
27 y = rank0(y, weights, "average");
28 return prho(x, y, weights);
29}
30
31}
32
33}
Weighted dependence measures.
Definition wdm.hpp:19