bitsofcotton / psnd

Safe compress continuous functions by p0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psnd

Safe compress continuous functions by p0.

Context

There's many programs to use predictor applying into compression. So this is another try.

Usage

./psnd -e < continuous.dat-16bit-signed > compress.dat
./psnd -d < compress.dat > continuous.dat-16bit-signed

Description

Compress continuous 16-bit signed integer input by using P0 prediction. This uses block and count by factorial but this is safe for compress and uncompress. There exists unsafe method like this without p0, it accesses aleph_]0, 1[ space on counting aleph_2 as infinity. It's unsafe. (cf. 1999 bit operation compression patents, 2005-2007 journals around physics but google doesn't find them that I saw.)

Tips

This is only useful if original datastream is continuous enough, otherwise, this expands data (becase of this, this is safe.)

Another Download Sites

Real close

2023/03/13 try to real close. integrate all files into lieonn.hh. 2023/03/24 code clean. 2023/12/09 param change, realclose.

About

Safe compress continuous functions by p0.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 99.7%Language:Makefile 0.3%