[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
min_max_scaler.h
1 #ifndef __MIN_MAX_SCALER__
2 #define __MIN_MAX_SCALER__
3 
4 #include <eigen/Eigen/Dense>
5 #include <iostream>
6 #include <algorithm>
7 
8 namespace PHiLiP {
9 namespace ProperOrthogonalDecomposition {
10 using Eigen::MatrixXd;
11 using Eigen::VectorXd;
12 using Eigen::RowVectorXd;
13 
16 {
17 public:
18 
20  MatrixXd fit_transform(const MatrixXd& snapshot_parameters);
21 
23  MatrixXd transform(const MatrixXd& snapshot_parameters);
24 
26  MatrixXd inverse_transform(const MatrixXd& snapshot_parameters);
27 
29  RowVectorXd min;
30 
32  RowVectorXd max;
33 
34 };
35 
36 }
37 }
38 
39 #endif
Files for the baseline physics.
Definition: ADTypes.hpp:10
MatrixXd fit_transform(const MatrixXd &snapshot_parameters)
Fit and transform data.
MatrixXd inverse_transform(const MatrixXd &snapshot_parameters)
Unscale data.
MatrixXd transform(const MatrixXd &snapshot_parameters)
Transform data to previously fitted dataset.