@nirs4all/methods 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3266,6 +3266,26 @@ export declare class OSC extends NativeEstimator implements Transformer {
|
|
|
3266
3266
|
constructor(params?: OSCParams);
|
|
3267
3267
|
transform(X: Matrix): Matrix;
|
|
3268
3268
|
}
|
|
3269
|
+
/** Parameters of AxisUnitConversion; unset values take the native defaults. */
|
|
3270
|
+
export interface AxisUnitConversionParams {
|
|
3271
|
+
/** Default "nm". */
|
|
3272
|
+
source_unit?: "nm" | "um" | "cm-1";
|
|
3273
|
+
/** Default "cm-1". */
|
|
3274
|
+
target_unit?: "nm" | "um" | "cm-1";
|
|
3275
|
+
/** Default false. */
|
|
3276
|
+
spectral_density?: boolean;
|
|
3277
|
+
}
|
|
3278
|
+
/** Native `preprocessing.resampling.axis_unit_conversion` (transformer). Required fit inputs: axis. */
|
|
3279
|
+
export declare class AxisUnitConversion extends NativeEstimator implements Transformer {
|
|
3280
|
+
readonly methodId = "preprocessing.resampling.axis_unit_conversion";
|
|
3281
|
+
readonly paramTypes: {
|
|
3282
|
+
readonly source_unit: "enum";
|
|
3283
|
+
readonly target_unit: "enum";
|
|
3284
|
+
readonly spectral_density: "bool";
|
|
3285
|
+
};
|
|
3286
|
+
constructor(params?: AxisUnitConversionParams);
|
|
3287
|
+
transform(X: Matrix): Matrix;
|
|
3288
|
+
}
|
|
3269
3289
|
/** Parameters of CropTransformer; unset values take the native defaults. */
|
|
3270
3290
|
export interface CropTransformerParams {
|
|
3271
3291
|
/** Required. */
|
|
@@ -3698,6 +3718,20 @@ export declare class FromAbsorbance extends NativeEstimator implements Transform
|
|
|
3698
3718
|
constructor(params?: FromAbsorbanceParams);
|
|
3699
3719
|
transform(X: Matrix): Matrix;
|
|
3700
3720
|
}
|
|
3721
|
+
/** Parameters of FromKubelkaMunk; unset values take the native defaults. */
|
|
3722
|
+
export interface FromKubelkaMunkParams {
|
|
3723
|
+
/** Default false. */
|
|
3724
|
+
is_percent?: boolean;
|
|
3725
|
+
}
|
|
3726
|
+
/** Native `preprocessing.signal_conversion.from_kubelka_munk` (transformer). */
|
|
3727
|
+
export declare class FromKubelkaMunk extends NativeEstimator implements Transformer {
|
|
3728
|
+
readonly methodId = "preprocessing.signal_conversion.from_kubelka_munk";
|
|
3729
|
+
readonly paramTypes: {
|
|
3730
|
+
readonly is_percent: "bool";
|
|
3731
|
+
};
|
|
3732
|
+
constructor(params?: FromKubelkaMunkParams);
|
|
3733
|
+
transform(X: Matrix): Matrix;
|
|
3734
|
+
}
|
|
3701
3735
|
/** Parameters of KubelkaMunk; unset values take the native defaults. */
|
|
3702
3736
|
export interface KubelkaMunkParams {
|
|
3703
3737
|
/** Default false. */
|
|
@@ -3725,6 +3759,52 @@ export declare class PercentToFraction extends NativeEstimator implements Transf
|
|
|
3725
3759
|
constructor(params?: PercentToFractionParams);
|
|
3726
3760
|
transform(X: Matrix): Matrix;
|
|
3727
3761
|
}
|
|
3762
|
+
/** Parameters of ReflectanceFromReferences; unset values take the native defaults. */
|
|
3763
|
+
export interface ReflectanceFromReferencesParams {
|
|
3764
|
+
/** Required. */
|
|
3765
|
+
white_reference?: number[];
|
|
3766
|
+
/** Default []. */
|
|
3767
|
+
dark_reference?: number[];
|
|
3768
|
+
/** Default false. */
|
|
3769
|
+
as_percent?: boolean;
|
|
3770
|
+
}
|
|
3771
|
+
/** Native `preprocessing.signal_conversion.reflectance_from_references` (transformer). */
|
|
3772
|
+
export declare class ReflectanceFromReferences extends NativeEstimator implements Transformer {
|
|
3773
|
+
readonly methodId = "preprocessing.signal_conversion.reflectance_from_references";
|
|
3774
|
+
readonly paramTypes: {
|
|
3775
|
+
readonly white_reference: "double_array";
|
|
3776
|
+
readonly dark_reference: "double_array";
|
|
3777
|
+
readonly as_percent: "bool";
|
|
3778
|
+
};
|
|
3779
|
+
constructor(params?: ReflectanceFromReferencesParams);
|
|
3780
|
+
transform(X: Matrix): Matrix;
|
|
3781
|
+
}
|
|
3782
|
+
/** Parameters of SpliceCorrection; unset values take the native defaults. */
|
|
3783
|
+
export interface SpliceCorrectionParams {
|
|
3784
|
+
/** Required. */
|
|
3785
|
+
splices?: number[];
|
|
3786
|
+
/** Default 1. */
|
|
3787
|
+
reference_segment?: number;
|
|
3788
|
+
/** Default "multiplicative". */
|
|
3789
|
+
method?: "multiplicative" | "additive";
|
|
3790
|
+
/** Default 0. */
|
|
3791
|
+
window?: number;
|
|
3792
|
+
/** Default false. */
|
|
3793
|
+
taper?: boolean;
|
|
3794
|
+
}
|
|
3795
|
+
/** Native `preprocessing.signal_conversion.splice_correction` (transformer). Required fit inputs: axis. */
|
|
3796
|
+
export declare class SpliceCorrection extends NativeEstimator implements Transformer {
|
|
3797
|
+
readonly methodId = "preprocessing.signal_conversion.splice_correction";
|
|
3798
|
+
readonly paramTypes: {
|
|
3799
|
+
readonly splices: "double_array";
|
|
3800
|
+
readonly reference_segment: "int";
|
|
3801
|
+
readonly method: "enum";
|
|
3802
|
+
readonly window: "double";
|
|
3803
|
+
readonly taper: "bool";
|
|
3804
|
+
};
|
|
3805
|
+
constructor(params?: SpliceCorrectionParams);
|
|
3806
|
+
transform(X: Matrix): Matrix;
|
|
3807
|
+
}
|
|
3728
3808
|
/** Parameters of ToAbsorbance; unset values take the native defaults. */
|
|
3729
3809
|
export interface ToAbsorbanceParams {
|
|
3730
3810
|
/** Default false. */
|
|
@@ -2553,6 +2553,23 @@ export class OSC extends NativeEstimator {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
2555
|
NativeMethod.register("preprocessing.orthogonalization.osc", OSC);
|
|
2556
|
+
/** Native `preprocessing.resampling.axis_unit_conversion` (transformer). Required fit inputs: axis. */
|
|
2557
|
+
export class AxisUnitConversion extends NativeEstimator {
|
|
2558
|
+
methodId = "preprocessing.resampling.axis_unit_conversion";
|
|
2559
|
+
paramTypes = {
|
|
2560
|
+
source_unit: "enum",
|
|
2561
|
+
target_unit: "enum",
|
|
2562
|
+
spectral_density: "bool",
|
|
2563
|
+
};
|
|
2564
|
+
constructor(params = {}) {
|
|
2565
|
+
super();
|
|
2566
|
+
this.params = { ...params };
|
|
2567
|
+
}
|
|
2568
|
+
transform(X) {
|
|
2569
|
+
return this.transformMatrix(X);
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
NativeMethod.register("preprocessing.resampling.axis_unit_conversion", AxisUnitConversion);
|
|
2556
2573
|
/** Native `preprocessing.resampling.crop` (transformer). */
|
|
2557
2574
|
export class CropTransformer extends NativeEstimator {
|
|
2558
2575
|
methodId = "preprocessing.resampling.crop";
|
|
@@ -2961,6 +2978,21 @@ export class FromAbsorbance extends NativeEstimator {
|
|
|
2961
2978
|
}
|
|
2962
2979
|
}
|
|
2963
2980
|
NativeMethod.register("preprocessing.signal_conversion.from_absorbance", FromAbsorbance);
|
|
2981
|
+
/** Native `preprocessing.signal_conversion.from_kubelka_munk` (transformer). */
|
|
2982
|
+
export class FromKubelkaMunk extends NativeEstimator {
|
|
2983
|
+
methodId = "preprocessing.signal_conversion.from_kubelka_munk";
|
|
2984
|
+
paramTypes = {
|
|
2985
|
+
is_percent: "bool",
|
|
2986
|
+
};
|
|
2987
|
+
constructor(params = {}) {
|
|
2988
|
+
super();
|
|
2989
|
+
this.params = { ...params };
|
|
2990
|
+
}
|
|
2991
|
+
transform(X) {
|
|
2992
|
+
return this.transformMatrix(X);
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
NativeMethod.register("preprocessing.signal_conversion.from_kubelka_munk", FromKubelkaMunk);
|
|
2964
2996
|
/** Native `preprocessing.signal_conversion.kubelka_munk` (transformer). */
|
|
2965
2997
|
export class KubelkaMunk extends NativeEstimator {
|
|
2966
2998
|
methodId = "preprocessing.signal_conversion.kubelka_munk";
|
|
@@ -2990,6 +3022,42 @@ export class PercentToFraction extends NativeEstimator {
|
|
|
2990
3022
|
}
|
|
2991
3023
|
}
|
|
2992
3024
|
NativeMethod.register("preprocessing.signal_conversion.percent_to_fraction", PercentToFraction);
|
|
3025
|
+
/** Native `preprocessing.signal_conversion.reflectance_from_references` (transformer). */
|
|
3026
|
+
export class ReflectanceFromReferences extends NativeEstimator {
|
|
3027
|
+
methodId = "preprocessing.signal_conversion.reflectance_from_references";
|
|
3028
|
+
paramTypes = {
|
|
3029
|
+
white_reference: "double_array",
|
|
3030
|
+
dark_reference: "double_array",
|
|
3031
|
+
as_percent: "bool",
|
|
3032
|
+
};
|
|
3033
|
+
constructor(params = {}) {
|
|
3034
|
+
super();
|
|
3035
|
+
this.params = { ...params };
|
|
3036
|
+
}
|
|
3037
|
+
transform(X) {
|
|
3038
|
+
return this.transformMatrix(X);
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
NativeMethod.register("preprocessing.signal_conversion.reflectance_from_references", ReflectanceFromReferences);
|
|
3042
|
+
/** Native `preprocessing.signal_conversion.splice_correction` (transformer). Required fit inputs: axis. */
|
|
3043
|
+
export class SpliceCorrection extends NativeEstimator {
|
|
3044
|
+
methodId = "preprocessing.signal_conversion.splice_correction";
|
|
3045
|
+
paramTypes = {
|
|
3046
|
+
splices: "double_array",
|
|
3047
|
+
reference_segment: "int",
|
|
3048
|
+
method: "enum",
|
|
3049
|
+
window: "double",
|
|
3050
|
+
taper: "bool",
|
|
3051
|
+
};
|
|
3052
|
+
constructor(params = {}) {
|
|
3053
|
+
super();
|
|
3054
|
+
this.params = { ...params };
|
|
3055
|
+
}
|
|
3056
|
+
transform(X) {
|
|
3057
|
+
return this.transformMatrix(X);
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
NativeMethod.register("preprocessing.signal_conversion.splice_correction", SpliceCorrection);
|
|
2993
3061
|
/** Native `preprocessing.signal_conversion.to_absorbance` (transformer). */
|
|
2994
3062
|
export class ToAbsorbance extends NativeEstimator {
|
|
2995
3063
|
methodId = "preprocessing.signal_conversion.to_absorbance";
|
package/dist/n4m.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED