Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Global Spectra Deconvolution + Peak optimizer
Threshold to determine if a given peak should be considered as a noise, bases on its relative height compared to the highest peak.
If broadRatio
is higher than 0, then all the peaks which second derivative smaller than broadRatio * maxAbsSecondDerivative
will be marked with the soft mask equal to true.
Noise threshold in spectrum units
Peaks are local maximum(true) or minimum(false)
Select the peak intensities from a smoothed version of the independent variables?
Use a quadratic optimizations with the peak and its 3 closest neighbors to determine the true x,y values of the peak?
Savitzky-Golay parameters. windowSize should be odd; polynomial is the degree of the polynomial to use in the approximations. It should be bigger than 2.
Factor to multiply the calculated height (usually 2).
Return also the inflection points of the peaks
Filters based on the amplitude of the first derivative
We enlarge the peaks and add the properties from and to. By default we enlarge of a factor 2 and we don't allow overlap.
var CC = require('chemcalc');
var Stat = require('ml-stat');
var peakPicking = require('ml-gsd');
var spectrum = CC.analyseMF('Cl2.Br2', {
isotopomers: 'arrayXXYY',
fwhm: 0.01,
gaussianWidth: 11
});
var xy = spectrum.arrayXXYY;
var x = xy[0];
var y = xy[1];
//Just a fake noiseLevel
var noiseLevel =
Stat.array.median(
y.filter(function(a) {
return a > 0;
})
) * 3;
var options = {
noiseLevel: noiseLevel,
minMaxRatio: 0,
broadRatio: 0,
smoothY: false,
realTopDetection: true
};
var result = peakPicking.gsd(x, y, options);
result = peakPicking.post.optimizePeaks(result, x, y, 1, 'gaussian');
2.0.4 (2019-01-09)
<a name="2.0.3"></a>
FAQs
Global Spectra Deconvolution
The npm package ml-gsd receives a total of 1,164 weekly downloads. As such, ml-gsd popularity was classified as popular.
We found that ml-gsd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.