mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-09 11:40:07 +00:00
marked options as partial, added max/min values
This commit is contained in:
5
types/ml-levenberg-marquardt/index.d.ts
vendored
5
types/ml-levenberg-marquardt/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/mljs/levenberg-marquardt#readme
|
||||
// Definitions by: m93a <https://github.com/m93a>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
declare namespace LM {
|
||||
/**
|
||||
@@ -24,6 +25,8 @@ declare namespace LM {
|
||||
gradientDifference: number;
|
||||
maxIterations: number;
|
||||
errorTolerance: number;
|
||||
maxValue: number;
|
||||
minValue: number;
|
||||
}
|
||||
|
||||
interface Result {
|
||||
@@ -33,6 +36,6 @@ declare namespace LM {
|
||||
}
|
||||
}
|
||||
|
||||
declare function LM(d: LM.Data, fn: LM.FittedFunction, o: LM.Options): LM.Result;
|
||||
declare function LM(d: LM.Data, fn: LM.FittedFunction, o?: Partial<LM.Options>): LM.Result;
|
||||
|
||||
export default LM;
|
||||
|
||||
Reference in New Issue
Block a user