C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

bernoulli_types.h
1 /* file: bernoulli_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Implementation of bernoulli distribution.
21 //--
22 */
23 
24 #ifndef __BERNOULLI__TYPES_H__
25 #define __BERNOULLI__TYPES_H__
26 
27 #include "algorithms/distributions/distribution_types.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 namespace distributions
34 {
44 namespace bernoulli
45 {
50 enum Method
51 {
52  defaultDense = 0
53 };
54 
58 namespace interface1
59 {
60 
65 template<typename algorithmFPType>
66 class DAAL_EXPORT Parameter: public distributions::ParameterBase
67 {
68 public:
73  Parameter(algorithmFPType _p): p(_p) {}
74 
75  algorithmFPType p;
80  services::Status check() const DAAL_C11_OVERRIDE;
81 };
82 
83 } // namespace interface1
84 using interface1::Parameter;
85 
86 } // namespace bernoulli
88 } // namespace distributions
89 } // namespace algorithms
90 } // namespace daal
91 
92 #endif
daal::algorithms::distributions::bernoulli::Method
Method
Definition: bernoulli_types.h:50
daal::algorithms::distributions::bernoulli::interface1::Parameter
Bernoulli distribution parameters.
Definition: bernoulli_types.h:66
daal::algorithms::distributions::bernoulli::interface1::Parameter::Parameter
Parameter(algorithmFPType _p)
Definition: bernoulli_types.h:73
daal::algorithms::distributions::bernoulli::defaultDense
Definition: bernoulli_types.h:52
daal::algorithms::distributions::bernoulli::interface1::Parameter::p
algorithmFPType p
Definition: bernoulli_types.h:75

For more complete information about compiler optimizations, see our Optimization Notice.