pca.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-2021, NVIDIA CORPORATION.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include "params.hpp"
20 
21 namespace raft {
22 class handle_t;
23 }
24 
25 namespace ML {
26 
27 void pcaFit(raft::handle_t& handle,
28  float* input,
29  float* components,
30  float* explained_var,
31  float* explained_var_ratio,
32  float* singular_vals,
33  float* mu,
34  float* noise_vars,
35  const paramsPCA& prms);
36 void pcaFit(raft::handle_t& handle,
37  double* input,
38  double* components,
39  double* explained_var,
40  double* explained_var_ratio,
41  double* singular_vals,
42  double* mu,
43  double* noise_vars,
44  const paramsPCA& prms);
45 void pcaFitTransform(raft::handle_t& handle,
46  float* input,
47  float* trans_input,
48  float* components,
49  float* explained_var,
50  float* explained_var_ratio,
51  float* singular_vals,
52  float* mu,
53  float* noise_vars,
54  const paramsPCA& prms);
55 void pcaFitTransform(raft::handle_t& handle,
56  double* input,
57  double* trans_input,
58  double* components,
59  double* explained_var,
60  double* explained_var_ratio,
61  double* singular_vals,
62  double* mu,
63  double* noise_vars,
64  const paramsPCA& prms);
65 void pcaInverseTransform(raft::handle_t& handle,
66  float* trans_input,
67  float* components,
68  float* singular_vals,
69  float* mu,
70  float* input,
71  const paramsPCA& prms);
72 void pcaInverseTransform(raft::handle_t& handle,
73  double* trans_input,
74  double* components,
75  double* singular_vals,
76  double* mu,
77  double* input,
78  const paramsPCA& prms);
79 void pcaTransform(raft::handle_t& handle,
80  float* input,
81  float* components,
82  float* trans_input,
83  float* singular_vals,
84  float* mu,
85  const paramsPCA& prms);
86 void pcaTransform(raft::handle_t& handle,
87  double* input,
88  double* components,
89  double* trans_input,
90  double* singular_vals,
91  double* mu,
92  const paramsPCA& prms);
93 
94 }; // end namespace ML
structure for pca parameters. Ref: http://scikit-learn.org/stable/modules/generated/sklearn....
Definition: params.hpp:75
Definition: dbscan.hpp:30
void pcaFit(raft::handle_t &handle, float *input, float *components, float *explained_var, float *explained_var_ratio, float *singular_vals, float *mu, float *noise_vars, const paramsPCA &prms)
void pcaTransform(raft::handle_t &handle, float *input, float *components, float *trans_input, float *singular_vals, float *mu, const paramsPCA &prms)
void pcaInverseTransform(raft::handle_t &handle, float *trans_input, float *components, float *singular_vals, float *mu, float *input, const paramsPCA &prms)
void pcaFitTransform(raft::handle_t &handle, float *input, float *trans_input, float *components, float *explained_var, float *explained_var_ratio, float *singular_vals, float *mu, float *noise_vars, const paramsPCA &prms)
Definition: dbscan.hpp:26