[2c47b73] | 1 | /** |
---|
| 2 | * @file sz_float.h |
---|
| 3 | * @author Sheng Di |
---|
| 4 | * @date July, 2017 |
---|
| 5 | * @brief Header file for the sz_float.c. |
---|
| 6 | * (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory. |
---|
| 7 | * See COPYRIGHT in top-level directory. |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #ifndef _SZ_Float_PWR_H |
---|
| 11 | #define _SZ_Float_PWR_H |
---|
| 12 | |
---|
| 13 | #ifdef __cplusplus |
---|
| 14 | extern "C" { |
---|
| 15 | #endif |
---|
| 16 | |
---|
| 17 | void compute_segment_precisions_float_1D(float *oriData, size_t dataLength, float* pwrErrBound, unsigned char* pwrErrBoundBytes, double globalPrecision); |
---|
| 18 | unsigned int optimize_intervals_float_1D_pwr(float *oriData, size_t dataLength, float* pwrErrBound); |
---|
| 19 | |
---|
| 20 | void compute_segment_precisions_float_2D(float *oriData, float* pwrErrBound, |
---|
| 21 | size_t r1, size_t r2, size_t R2, size_t edgeSize, unsigned char* pwrErrBoundBytes, float Min, float Max, double globalPrecision); |
---|
| 22 | |
---|
| 23 | unsigned int optimize_intervals_float_2D_pwr(float *oriData, size_t r1, size_t r2, size_t R2, size_t edgeSize, float* pwrErrBound); |
---|
| 24 | |
---|
| 25 | void compute_segment_precisions_float_3D(float *oriData, float* pwrErrBound, |
---|
| 26 | size_t r1, size_t r2, size_t r3, size_t R2, size_t R3, size_t edgeSize, unsigned char* pwrErrBoundBytes, float Min, float Max, double globalPrecision); |
---|
| 27 | |
---|
| 28 | unsigned int optimize_intervals_float_3D_pwr(float *oriData, size_t r1, size_t r2, size_t r3, size_t R2, size_t R3, size_t edgeSize, float* pwrErrBound); |
---|
| 29 | |
---|
| 30 | void SZ_compress_args_float_NoCkRngeNoGzip_1D_pwr(unsigned char** newByteData, float *oriData, double globalPrecision, size_t dataLength, size_t *outSize, float min, float max); |
---|
| 31 | |
---|
| 32 | void SZ_compress_args_float_NoCkRngeNoGzip_2D_pwr(unsigned char** newByteData, float *oriData, double globalPrecision, size_t r1, size_t r2, |
---|
| 33 | size_t *outSize, float min, float max); |
---|
| 34 | |
---|
| 35 | void SZ_compress_args_float_NoCkRngeNoGzip_3D_pwr(unsigned char** newByteData, float *oriData, double globalPrecision, size_t r1, size_t r2, |
---|
| 36 | size_t r3, size_t *outSize, float min, float max); |
---|
| 37 | |
---|
| 38 | void createRangeGroups_float(float** posGroups, float** negGroups, int** posFlags, int** negFlags); |
---|
| 39 | void compressGroupIDArray_float(char* groupID, TightDataPointStorageF* tdps); |
---|
| 40 | int* generateGroupLowerBounds(); |
---|
| 41 | TightDataPointStorageF* SZ_compress_float_1D_MDQ_pwrGroup(float* oriData, size_t dataLength, int errBoundMode, |
---|
| 42 | double absErrBound, double relBoundRatio, double pwrErrRatio, float valueRangeSize, float medianValue_f); |
---|
| 43 | |
---|
| 44 | void SZ_compress_args_float_NoCkRngeNoGzip_1D_pwrgroup(unsigned char** newByteData, float *oriData, |
---|
| 45 | size_t dataLength, double absErrBound, double relBoundRatio, double pwrErrRatio, float valueRangeSize, float medianValue_f, size_t *outSize); |
---|
| 46 | |
---|
| 47 | #ifdef __cplusplus |
---|
| 48 | } |
---|
| 49 | #endif |
---|
| 50 | |
---|
| 51 | #endif /* ----- #ifndef _SZ_Float_PWR_H ----- */ |
---|
| 52 | |
---|