datasketches-cpp
Toggle main menu visibility
Loading...
Searching...
No Matches
theta
include
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
26
namespace
datasketches
{
27
29
namespace
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
= 4;
40
const
uint8_t
MAX_LG_K
= 26;
42
const
uint8_t
MIN_LG_ARR
= 5;
44
const
uint8_t
DEFAULT_LG_K
= 12;
45
}
46
47
}
/* namespace datasketches */
48
49
#endif
datasketches::theta_constants
Theta constants.
Definition
theta_constants.hpp:29
datasketches::theta_constants::DEFAULT_RESIZE_FACTOR
const resize_factor DEFAULT_RESIZE_FACTOR
default resize factor
Definition
theta_constants.hpp:33
datasketches::theta_constants::resize_factor
datasketches::resize_factor resize_factor
hash table resize factor
Definition
theta_constants.hpp:31
datasketches::theta_constants::MIN_LG_ARR
const uint8_t MIN_LG_ARR
min log2 of cache size
Definition
theta_constants.hpp:42
datasketches::theta_constants::DEFAULT_LG_K
const uint8_t DEFAULT_LG_K
default log2 of K
Definition
theta_constants.hpp:44
datasketches::theta_constants::MIN_LG_K
const uint8_t MIN_LG_K
min log2 of nominal entries (K)
Definition
theta_constants.hpp:38
datasketches::theta_constants::MAX_LG_K
const uint8_t MAX_LG_K
max log2 of K
Definition
theta_constants.hpp:40
datasketches::theta_constants::MAX_THETA
const uint64_t MAX_THETA
max theta - signed max for compatibility with Java
Definition
theta_constants.hpp:36
datasketches
DataSketches namespace.
Definition
binomial_bounds.hpp:38
Generated by
1.18.0