Releases: asiffer/libspot
Releases · asiffer/libspot
v3.0.0
Malloc-free
The brand new v3 version removes the allocator API.
If you use the typescript or python versions, you have nothing to do!
Before
With thr allocator API, the user passed malloc and free functions so that libspot allocates the buffer to store tail data based on max_excess.
set_allocators(malloc, free);
struct Spot spot;
int status = spot_init(
&spot, // pointer to the allocated structure
1e-4, // q: anomaly probability
0, // low: observe upper tail
1, // discard_anomalies: flag anomalies
0.998, // level: tail quantile (the 0.2% higher values shapes the tail)
200 // max_excess: number of data to keep to summarize the tail
);After
Henceforth, the user directly provides the buffer.
struct Spot spot;
double buffer[200]; // <-- allocate tail buffer on your own
int status = spot_init(
&spot,
1e-4,
0,
1,
0.998,
buffer, // buffer: backing array to store the excesses (now provided by the user)
200
);Important
The max_excess parameter is the size of the buffer.
v2.0b6
v2.0b5
What's Changed
- Fix sort5 by @asiffer in #16
- Fix post link by @shenxiangzhuang in #17
- Add trusted publisher by @asiffer in #19
- Golang doc by @asiffer in #20
- doc: add libspot-rs install and usage by @shenxiangzhuang in #23
- fix(peaks): peaks_update_stats var calculation by @shenxiangzhuang in #24
New Contributors
- @shenxiangzhuang made their first contribution in #17
Full Changelog: v2.0b0-266...v2.0b5
v2.0b0
Merge pull request #12 from asiffer/asiffer-new-version-patch-1 Fix path in release.yaml
v2.0b0-264
Merge pull request #11 from asiffer/new-version New version (2.0b)
v1.3.1
Merge pull request #8 from asiffer/7-loop-over-candidates-in-gpdfit Loop over candidates in gpdfit
Version 1.3.0-168
Merge pull request #6 from asiffer/4-add-version-in-library-interface Add version in library interface
Version 1.2.1-165
Merge pull request #5 from milahu/patch-1 Makefile: allow custom prefix
Version 1.2.1-163
v1.2.1-163 update Makefile