Giter Site home page Giter Site logo

noisysignalintegration.jl's Issues

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))

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)

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.

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.