imate
C++/CUDA Reference
Loading...
Searching...
No Matches
gaussian.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
3 * SPDX-License-Identifier: BSD-3-Clause
4 * SPDX-FileType: SOURCE
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the license found in the LICENSE.txt file in the root
8 * directory of this source tree.
9 */
10
11
12#ifndef FUNCTIONS_GAUSSIAN_H_
13#define FUNCTIONS_GAUSSIAN_H_
14
15// =======
16// Headers
17// =======
18
19#include "./functions.h"
20
21
22// ========
23// Gaussian
24// ========
25
50
51class Gaussian : public Function
52{
53 public:
54 Gaussian(double mu_, double sigma_);
55 virtual float function(const float lambda_) const;
56 virtual double function(const double lambda_) const;
57 virtual long double function(const long double lambda_) const;
58 double mu;
59 double sigma;
60};
61
62#endif // FUNCTIONS_GAUSSIAN_H_
Defines the function .
Definition functions.h:38
Defines the normal probability density function.
Definition gaussian.h:52
virtual float function(const float lambda_) const
Definition gaussian.cpp:48
double mu
Definition gaussian.h:58
double sigma
Definition gaussian.h:59