Skip to main content

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 FindSignificantZones to 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 SegmentSignal instead. 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.
    • 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.
  • 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.txt file in that project for more information.

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.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SegmentSignalPy 0.1.4
File Size Uploaded Provenance Actions
segmentsignalpy-0.1.4.tar.gz 19.4 kB With provenance Details for segmentsignalpy-0.1.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for SegmentSignalPy 0.1.4
File Actions
segmentsignalpy-0.1.4-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for segmentsignalpy-0.1.4-cp315-cp315-win_amd64.whl
segmentsignalpy-0.1.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for segmentsignalpy-0.1.4-cp314-cp314-win_amd64.whl
segmentsignalpy-0.1.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for segmentsignalpy-0.1.4-cp313-cp313-win_amd64.whl
segmentsignalpy-0.1.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for segmentsignalpy-0.1.4-cp312-cp312-win_amd64.whl
segmentsignalpy-0.1.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for segmentsignalpy-0.1.4-cp311-cp311-win_amd64.whl

Total release size: 695.4 kB

Release files / segmentsignalpy-0.1.4.tar.gz

Download URL segmentsignalpy-0.1.4.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ad08bc14fcbac4b49bb413eac5d39df65cae2a60db91e1a2565db4e3fc0463a1
BLAKE2b-256 checksum
How to use checksums
7e12109243ff5624b0cb4b5dc81e08ad81bc2350ec95e7ff4e4ce7c09ee1c4e8
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 log

Release files / segmentsignalpy-0.1.4-cp315-cp315-win_amd64.whl

Download URL segmentsignalpy-0.1.4-cp315-cp315-win_amd64.whl
Size 137.4 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
f7cc2e022d29fc29a107cdc00fb2209f91f974fdb5b564d40241828163ab5977
BLAKE2b-256 checksum
How to use checksums
6d58346a0dc49bdf3ff1675f7990bf684658481288069f50c3081b7ed2a0b528
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 log

Release files / segmentsignalpy-0.1.4-cp314-cp314-win_amd64.whl

Download URL segmentsignalpy-0.1.4-cp314-cp314-win_amd64.whl
Size 137.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
36627936d890294f0fb0592744dee4301d8731873887052c6325504797429010
BLAKE2b-256 checksum
How to use checksums
f31452ad00af9ad651180100cb65d068955c42b7503b287ef4d03de89a4d2fd6
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 log

Release files / segmentsignalpy-0.1.4-cp313-cp313-win_amd64.whl

Download URL segmentsignalpy-0.1.4-cp313-cp313-win_amd64.whl
Size 134.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
2492472400e7ff53fe5fb84177953f18ece3e229076ca30fca4a99d575ce5d05
BLAKE2b-256 checksum
How to use checksums
21382b802beacb88b18745ef819bbdbe9ad427b698c012f73297be21ad4de8b0
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 log

Release files / segmentsignalpy-0.1.4-cp312-cp312-win_amd64.whl

Download URL segmentsignalpy-0.1.4-cp312-cp312-win_amd64.whl
Size 134.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
2e1cb0415d9c2370c7e246529d40ab90c5c806c5f9168f18e3ab7cb8bef012ea
BLAKE2b-256 checksum
How to use checksums
3865bb1e5a0953419892669f57afdda7facdc8aa8c48248affd3c1a9a0f10476
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 log

Release files / segmentsignalpy-0.1.4-cp311-cp311-win_amd64.whl

Download URL segmentsignalpy-0.1.4-cp311-cp311-win_amd64.whl
Size 131.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
eba8b8b378496ff53e30f78d86eacac21c95fd78bf5f12b1b03bb05ade28f1cf
BLAKE2b-256 checksum
How to use checksums
e2822cf52ec833ca249d9b7e17db6b9e8e81965b7da5dd3ba81b896ee1b7f30b
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 log

Security for SegmentSignalPy 0.1.4

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.

Select from 6 files

Attestation for segmentsignalpy-0.1.4.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page