Segment Signals
A signal segmentation algorithm.
Introduction
This library implements the algorithm found in: Segmentation of well logs by maximum likelihood estimation: the algorithm and FORTRAN-77 implementation by S.Radhakrishnan, G.Srikanth, and C.H.Mehta
The original algorithm was written in Fortran. This version converts it to C++ and C#. In addition, the following changes have been made:
- Converted the binary event array (Q) from double to int. Likely, the original was a double to keep all options as floats and prevent accidental round off. C/C++ automatically perform calculations as doubles when any of the parameters is a double. The binary event sequence is, of course, meant to be binary, so conversion to int is logical. This also meant a few lines could be simplified (such as comparisons). E.g. you could directly test "if (Q[i])" rather than requiring the inequality.
- Removed a bug from the GETSPK/GetSpikeyZone function. The fix prevents over running the end of an array.
- Addition of
FindSignificantZonesto allow simple filtering (removal) of small zones.
Organization
A high-level view of the organization is as follows.
-
CPP Static Library
- SegmentSignalFunctions.
- It is suggested not to use these directly, but to use the class
SegmentSignalinstead. These files implement the original algorithm in C++. The function names have changed to something more readable. The original function names can be found in the comments in the .cpp file. The functions have otherwise been directly converted from Fortran and should be easily comparable to those in the source paper.
- It is suggested not to use these directly, but to use the class
- SegmentSignal.*
- A class interface to the functions that makes use of the algorithm easier.
- SegmentationResults.*
- Small class to return results of the algorithm.
- NoiseVarianceEstimateMethod.h
- Enumeration for the noise variance estimation method.
- SegmentSignalFunctions.
-
C DLL
- DLL wrapper around the main SegmentSignal function. The DLL exposes a C function for calling.
-
C Sharp DLL Wrapper
- C# interface to the DLL. Classes mirror those in C++.
-
Unit Tests
- Testing projects. Also provides examples. See the "LogSeparateTest" functions for a basic example.
-
Python Extensions
- Builds a library for use with Python. See the
src/Python Extensions/Read Me.txtfile in that project for more information.
- Builds a library for use with Python. See the
Compiling
The Python Extension library requires knowledge of your local Python. See the src/Python Extensions/Read Me.txt file in that directory for more information.
Metadata
Release files for SegmentSignalPy 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| segmentsignalpy-0.1.3.tar.gz | 18.7 kB | With provenance | Details for segmentsignalpy-0.1.3.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| segmentsignalpy-0.1.3-cp315-cp315-win_amd64.whl | CPython 3.15 | CPython 3.15 | Windows x86-64 | Details for segmentsignalpy-0.1.3-cp315-cp315-win_amd64.whl |
| segmentsignalpy-0.1.3-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details for segmentsignalpy-0.1.3-cp314-cp314-win_amd64.whl |
| segmentsignalpy-0.1.3-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for segmentsignalpy-0.1.3-cp313-cp313-win_amd64.whl |
| segmentsignalpy-0.1.3-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details for segmentsignalpy-0.1.3-cp312-cp312-win_amd64.whl |
| segmentsignalpy-0.1.3-cp311-cp311-win_amd64.whl | CPython 3.11 | CPython 3.11 | Windows x86-64 | Details for segmentsignalpy-0.1.3-cp311-cp311-win_amd64.whl |
Total release size: 692.5 kB
Release files / segmentsignalpy-0.1.3.tar.gz
| Download URL | segmentsignalpy-0.1.3.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f8eef8b5f8ee78789004a8438a1670228c6bf9f70a8f0c4de8d6dc0771d9779
|
|
BLAKE2b-256 checksum How to use checksums |
085f9a0f46d5814b3e5a0264374e678ed9c43dd635d9eafd4e3da4039f6ced8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / segmentsignalpy-0.1.3-cp315-cp315-win_amd64.whl
| Download URL | segmentsignalpy-0.1.3-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 137.0 kB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
db0be539a21a51be4c8bbd70f6fdd34bb5b9987b832e11f7239666f66660d431
|
|
BLAKE2b-256 checksum How to use checksums |
5e489d737d05b6c755981b286a64ad75d442a90778e76a21f269a319ea063635
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / segmentsignalpy-0.1.3-cp314-cp314-win_amd64.whl
| Download URL | segmentsignalpy-0.1.3-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 137.0 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2487b32d94bf219825ea5e6f366b833d8e58bf89e2ac573b445b20300594a461
|
|
BLAKE2b-256 checksum How to use checksums |
eae93fcc60ccd6e13fc91db4f0e6532ae3d9204075051f1dbb618fb8fa4908f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / segmentsignalpy-0.1.3-cp313-cp313-win_amd64.whl
| Download URL | segmentsignalpy-0.1.3-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 134.2 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
bb6b4418e592274f3ea0160185e045c2f711c7d9cbb2299100eb1e8e4c733d22
|
|
BLAKE2b-256 checksum How to use checksums |
734c9cf3b2c7a0a8a88f5c6c267451c69d37028d04369efc25817286e3099b82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / segmentsignalpy-0.1.3-cp312-cp312-win_amd64.whl
| Download URL | segmentsignalpy-0.1.3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 134.2 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6d609338988ec4d37156549edde6f283479b1ba621c95e4036ae0c54303839e8
|
|
BLAKE2b-256 checksum How to use checksums |
a8ccfae298b542101056df800b341596b5044c097650ff80aa22b3f30e9493da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logRelease files / segmentsignalpy-0.1.3-cp311-cp311-win_amd64.whl
| Download URL | segmentsignalpy-0.1.3-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 131.5 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cf7c2df7719e30e9b6866482ae22d4a6f1405764f96bba91facdd9846690190d
|
|
BLAKE2b-256 checksum How to use checksums |
d338bc200800724a70b0af7b3716681558ec13258d788620fece1757a09a335a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logSecurity for SegmentSignalPy 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for segmentsignalpy-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.