Skip to content
Snippets Groups Projects
Commit eaecf145 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added bitinformation.h

parent cf4a26e7
No related branches found
No related tags found
No related merge requests found
Pipeline #20754 passed
......@@ -13,6 +13,7 @@
#include "pmlist.h"
#include "param_conversion.h"
#include "progress.h"
#include "bitinformation.h"
struct BitroundParams
{
......@@ -32,16 +33,6 @@ struct VarStat
int nsbMax = -1000;
};
#define NBITS 32
struct MutualInformation
{
double M[NBITS] = { };
};
void signed_exponent(float *A, size_t n);
MutualInformation bitinformation(float *A, size_t n);
static int
get_keepbits(MutualInformation &bitInfo, double inflevel)
{
......
......@@ -7,6 +7,7 @@ libcdo_la_SOURCES = after_dvtrans.cc \
afterburner.h \
afterburnerlib.cc \
bitinformation.cc \
bitinformation.h \
cdi_lockedIO.cc \
cdi_lockedIO.h \
cdi_uuid.h \
......
......@@ -18,18 +18,12 @@
#endif
#include "statistic.h" // cdo::normal_inv()
constexpr int NBITS = 32; // Number of bits in type `float`
#include "bitinformation.h"
struct BitpairCounters
{
int C[NBITS][2][2] = { };
};
struct MutualInformation
{
double M[NBITS] = { };
};
/*
p₁ = binom_confidence(n::Int,c::Real)
......
#ifndef BITINFORMATION_H
#define BITINFORMATION_H
constexpr int NBITS = 32; // Number of bits in type `float`
struct MutualInformation
{
double M[NBITS] = { };
};
void signed_exponent(float *A, size_t n);
MutualInformation bitinformation(float *A, size_t n);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment