File: fastCDFOnSample.h

package info (click to toggle)
stopt 6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,264 kB
  • sloc: cpp: 75,778; python: 6,012; makefile: 72; sh: 57
file content (27 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (C) 2020 EDF
// All Rights Reserved
// This code is published under the GNU Lesser General Public License (GNU LGPL)
#ifndef FASTCDFONSAMPLE_H
#define FASTCDFONSAMPLE_H


/** \file fastCDFOnSample.h
 *  \brief Calculate CDF with fast divide and conquer in  Langrené-Warin 2020 :
 *         "Fast multivariate empirical cumulative distribution function with connection to kernel density estimation"
 *          The CDF estimated at the sample points
 *  \author Xavier Warin
 */


namespace StOpt
{
/// \brief Calculate fast CDF
/// \param p_x particules (sample)  size : (dimension, nbSim)
/// \param p_y  estimate for each p_x point
/// \return for each point of the grid return the CDF
Eigen::ArrayXd fastCDFOnSample(const Eigen::ArrayXXd &p_x, const Eigen::ArrayXd &p_y);

}
#endif /* FASTCDFONSAMPLE_H */