Giter Site home page Giter Site logo

noisysignalintegration.jl's Introduction

NoisySignalIntegration.jl

A tool to determine uncertainty in numeric integrals of noisy x-y data.

NoisySignalIntegration implements a method to determine the uncertainty in numeric integrals of noisy x-y data on the basis of a Monte-Carlo process. It can include uncertainty due to noise, baseline subtraction, and placement in integration bounds. To do this, the integration is repeated many times while the noise of the data, baseline, and integration bounds are varied based on a noise model and user supplied probability distributions.

To view the documentation, click the badge below:

Documentation, latest

Installation

The package is not yet registered in Julia's general package registry, you have to install it directly from this Github repository.

To install it for your project, enter the package mode in the Julia REPL (press ]) and type:

add https://github.com/nluetts/NoisySignalIntegration.jl

While still in package mode, you can type

test NoisySignalIntegration

to run the package's unit tests.

Getting Started

Check out the documentation to learn how to use the package.

If you don't have a local Julia installation, you can test the package on mybinder.org. Click the badge below and open one of the example notebooks:

Binder

Contributing and Support

If you have problems with the package, submit an issue. Feel free to fork the project and open a pull request if you would like to contribute.

noisysignalintegration.jl's People

Contributors

nluetts avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

noisysignalintegration.jl's Issues

local baseline should be defined by points weighted by integration bounds

Currently the local baseline starts and ends at the start and end point of the integration window of the particular draw. This can make the local baseline vary more than one would expect from a look at the spectrum. It would be better to weigh the y-values of the baseline by the spectral data using the distributions of the start and end point of the integration window.

Subtracting two curves yields MethodError

MethodError: -(::Curve{Float64}, ::Curve{Float64}) is ambiguous. Candidates:
  -(c::NoisySignalIntegration.AbstractCurve, y) in ...
  -(y, c::NoisySignalIntegration.AbstractCurve) in ...
Possible fix, define
  -(::NoisySignalIntegration.AbstractCurve, ::NoisySignalIntegration.AbstractCurve)

Add function to interpolate Curve on uniform grid

something similar to:

c = sort(Curve(dat.wavenumber, dat.absorbance))
δx = minimum(diff(c.x))
x_even = collect(minimum(c.x):δx:maximum(c.x))
interp = LinearInterpolation(c.x, c.y)
full_spectrum = Curve(x_even, interp(x_even))

Allow for pre-processing step

Perhaps add a callback function that runs before the integration in each MC draw.
For example, this would allow to apply a correction to a spectrum for each draw of the MC process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.