- addMissingShape<T>(peaks, options?): (T & {
shape: Shape1D;
})[] Type Parameters
T extends {
width: number;
}
Parameters
peaks: T[]
options: {
output?: T[];
shape?: Shape1D;
} = {}
Optional
output?: T[]
Optional
shape?: Shape1D
Returns (T & {
shape: Shape1D;
})[]
add missing property if it does not exist in the peak, if shape exists but fwhm doesn't, it will be calculated from peak.width