Skip to content

Commit

Permalink
docs: add new parameter in TS definition
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Sep 17, 2024
1 parent b4148ae commit acde453
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions chromatography.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export interface nmfOptions {

export interface DeconvolutionOptions {
/**
* Number of pure components
* Number of pure components
*/
rank: number;
range: ChromatogramRange;
Expand All @@ -317,7 +317,7 @@ export interface DeconvolutionOptions {
export interface DeconvolutionResult {
/**
* submatrix, times and m/z axis of the range
*/
*/
matrix: number[][];
/**
* vector with retention times of the range
Expand All @@ -336,7 +336,7 @@ export interface DeconvolutionResult {
*/
profile: number[][];
/**
* Matrix with row as estimated pure components
* Matrix with row as estimated pure components
*/
component: number[][];
}
Expand All @@ -349,6 +349,9 @@ export class Chromatogram {
constructor(
times: number[],
series: { [key: string]: ChromatogramSeriesData },
options?: {
meta?: Record<string, any>;
},
);

/**
Expand Down Expand Up @@ -576,16 +579,12 @@ export class Chromatogram {
* Performing non-negative matrix factorization solving
* argmin_(A >= 0, S >= 0) 1 / 2 * ||Y - AS||_2^2 + lambda * ||S||_1
*/
deconvolution(
options?: DeconvolutionOptions
): DeconvolutionResult;
deconvolution(options?: DeconvolutionOptions): DeconvolutionResult;

/**
* Return the submatrix, times, and mass x axis for each range
*/
getMzVsTimesMatrix(
range: ChromatogramRange
)
getMzVsTimesMatrix(range: ChromatogramRange);
}

export interface FromJSONObject {
Expand Down

0 comments on commit acde453

Please sign in to comment.