OpenLB 1.7
Loading...
Searching...
No Matches
superStatisticF3D.h
Go to the documentation of this file.
1/* This file is part of the OpenLB library
2 *
3 * Copyright (C) 2019 Jakob Mangold, Mathias J. Krause
4 * E-mail contact: info@openlb.net
5 * The most recent release of OpenLB can be downloaded at
6 * <http://www.openlb.net/>
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program; if not, write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef SUPER_STATISTIC_F3D_H
25#define SUPER_STATISTIC_F3D_H
26
27#include "superBaseF3D.h"
28#include "blockStatisticF3D.h"
31
32namespace olb {
33
34
36template <typename T, typename W = T>
37class SuperVarianceF3D final : public SuperF3D<T,W> {
38private:
41 T _expectedValue;
42public:
44
48// SuperStdDeviationF3D(FunctorPtr<SuperF3D<T,W>>&& f,
49// FunctorPtr<SuperIndicatorF3D<T>>&& indicatorF);
51
56// SuperStdDeviationF3D(FunctorPtr<SuperF3D<T,W>>&& f,
57// SuperGeometry<T,3>& superGeometry,
58// const int material);
59
60
61
62
64 SuperGeometry<T,3>& superGeometry,
65 const int material,
66 T expectedValue);
67
68
69
70
72 FunctorPtr<SuperIndicatorF3D<T>>&& indicatorF,
73 T expectedValue);
74
75
77
85 bool operator() (W output[], const int input[]) override;
86};
87
88
90
91
92
94template <typename T, typename W = T>
95class SuperStdDeviationF3D final : public SuperF3D<T,W> {
96private:
99 T _expectedValue;
100public:
102
106// SuperStdDeviationF3D(FunctorPtr<SuperF3D<T,W>>&& f,
107// FunctorPtr<SuperIndicatorF3D<T>>&& indicatorF);
109
114// SuperStdDeviationF3D(FunctorPtr<SuperF3D<T,W>>&& f,
115// SuperGeometry<T,3>& superGeometry,
116// const int material);
117
118
119
120
122 SuperGeometry<T,3>& superGeometry,
123 const int material,
124 T expectedValue);
125
126
127
128
130 FunctorPtr<SuperIndicatorF3D<T>>&& indicatorF,
131 T expectedValue);
132
133
134 bool operator() (W output[], const int input[]) override;
135};
136
137
138}
139
140#endif
141
Smart pointer for managing the various ways of passing functors around.
Definition functorPtr.h:60
represents all functors that operate on a SuperStructure<T,3> in general
Representation of a statistic for a parallel 2D geometry.
Base indicator functor (discrete)
SuperStdDeviaitonF3D returns the standard deviation in each component of f on a indicated subset calc...
SuperStdDeviationF3D(FunctorPtr< SuperF3D< T, W > > &&f, SuperGeometry< T, 3 > &superGeometry, const int material, T expectedValue)
Constructor for determining the standard deviation of f on a indicated subset.
bool operator()(W output[], const int input[]) override
SuperVarianceF3D returns the Variance in each component of f on a indicated subset calcutalted with S...
bool operator()(W output[], const int input[]) override
Global average operator.
SuperVarianceF3D(FunctorPtr< SuperF3D< T, W > > &&f, SuperGeometry< T, 3 > &superGeometry, const int material, T expectedValue)
Constructor for determining the standard deviation of f on a indicated subset.
Top level namespace for all of OpenLB.