datasketches-cpp
Loading...
Searching...
No Matches
theta_constants.hpp
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef THETA_CONSTANTS_HPP_
21#define THETA_CONSTANTS_HPP_
22
23#include <climits>
24#include "common_defs.hpp"
25
26namespace datasketches {
27
29namespace theta_constants {
31 using resize_factor = datasketches::resize_factor;
33 const resize_factor DEFAULT_RESIZE_FACTOR = resize_factor::X8;
34
36 const uint64_t MAX_THETA = LLONG_MAX;
38 const uint8_t MIN_LG_K = 5;
40 const uint8_t MAX_LG_K = 26;
42 const uint8_t DEFAULT_LG_K = 12;
43}
44
45} /* namespace datasketches */
46
47#endif
const resize_factor DEFAULT_RESIZE_FACTOR
default resize factor
Definition theta_constants.hpp:33
const uint8_t DEFAULT_LG_K
default log2 of K
Definition theta_constants.hpp:42
const uint8_t MIN_LG_K
min log2 of K
Definition theta_constants.hpp:38
const uint8_t MAX_LG_K
max log2 of K
Definition theta_constants.hpp:40
const uint64_t MAX_THETA
max theta - signed max for compatibility with Java
Definition theta_constants.hpp:36
DataSketches namespace.
Definition binomial_bounds.hpp:38