Skip to content

Commit

Permalink
update sz.config to support norm error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheng Di committed Feb 25, 2020
1 parent 7ebc982 commit 969a28d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions example/sz.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ dataEndianType = LITTLE_ENDIAN_DATA
#SZ is the general version
#SZ_Transpose is only used for 2D or 3D, it will transpose the datasets and then do the compression, because the data are assumed to be smoother on higher-dimension
#Pastri (customized for GAMESS simulation)
#sol_name = SZ_Transpose
sol_name = SZ
#sol_name = SZ_Transpose


#======================================================================================================
#=================[Compression Parameters] No need to change unless necessary. =======================
#======================================================================================================
[PARAMETER]

snapshotCmprStep = 5
#snapshotCmprStep = 5

#withLinearRegression = NO
withLinearRegression = NO

#sampleDistance determins the number of samples used to optimize the # quantization intervals
#For example, sampleDistance=50 means 1/50=2% of data points are sample points.
Expand Down Expand Up @@ -84,10 +84,11 @@ randomAccess = 0
#errorBoundMode: 8 options to control different types of error bounds (detailed can be found in the user guide)
#ABS_AND_REL, ABS_OR_REL, ABS, REL (or VR_REL), PW_REL, ABS_AND_PW_REL, ABS_OR_PW_REL, REL_AND_PW_REL, REL_OR_PW_REL
#errorBoundMode = ABS_AND_PW_REL
errorBoundMode = REL
#errorBoundMode = REL
#errorBoundMode = PSNR
#errorBoundMode = ABS
#errorBoundMode = PW_REL
errorBoundMode = NORM

#absolute Error Bound (NOTE: it's valid when errorBoundMode is related to ABS (i.e., absolute error bound)
#absErrBound is to limit the (de)compression errors to be within an absolute error. For example, absErrBound=0.0001 means the decompressed value must be in [V-0.0001,V+0.0001], where V is the original true value.
Expand All @@ -105,6 +106,9 @@ relBoundRatio = 1E-4
#psnr is to spesify the PSNR of the compression. It's valid only when errorBoundMode == PSNR
psnr = 80

#NORM2 Error: sqrt((x1-x1')^2+(x2-x2')^2+....+(xN-xN')^2)
normErr = 0.05

#point-wise relative Bound Ratio (NOTE: only valid when errorBoundMode is related to PW_REL)
#pw_relBountRatio is to limit the (de)compression errors by considering the point-wise original data values.
#For example, suppose pw_relBoundRatio is set to 0.01, and the data set is {100,101,102,103,104,...,110}, so the compression errors will be limited to {1,1.01,1.02,....1.10} for the data points.
Expand Down

0 comments on commit 969a28d

Please sign in to comment.