Options
All
  • Public
  • Public/Protected
  • All
Menu

@imaginary-maths/box-model

Index

Type aliases

BoxModelElementKey: "stocks" | "flows" | "variables" | "parameters"
ConvergenceCriterion: (r: Record, rPrevious: Record, i: number, bme: BoxModelEngine) => boolean

Type declaration

Formula: ({ s, f, v, p, t, }: { f: LookupFunction; p: LookupFunction; s: LookupFunction; t: number; v: LookupFunction }) => number

Type declaration

IVPIntegrator: (y: ReadonlyArray<number>, x: number, h: number, derivatives: (y: ReadonlyArray<number>, x: number) => number[]) => number[]

Type declaration

    • (y: ReadonlyArray<number>, x: number, h: number, derivatives: (y: ReadonlyArray<number>, x: number) => number[]): number[]
    • Parameters

      • y: ReadonlyArray<number>
      • x: number
      • h: number
      • derivatives: (y: ReadonlyArray<number>, x: number) => number[]
          • (y: ReadonlyArray<number>, x: number): number[]
          • Parameters

            • y: ReadonlyArray<number>
            • x: number

            Returns number[]

      Returns number[]

LookupFunction: (id: string) => number

Type declaration

    • (id: string): number
    • Parameters

      • id: string

      Returns number

Functions

  • euler(y: readonly number[], x: number, h: number, derivatives: (y: readonly number[], x: number) => number[]): number[]
  • Parameters

    • y: readonly number[]
    • x: number
    • h: number
    • derivatives: (y: readonly number[], x: number) => number[]
        • (y: readonly number[], x: number): number[]
        • Parameters

          • y: readonly number[]
          • x: number

          Returns number[]

    Returns number[]

  • rk4(y: readonly number[], x: number, h: number, derivatives: (y: readonly number[], x: number) => number[]): number[]
  • Parameters

    • y: readonly number[]
    • x: number
    • h: number
    • derivatives: (y: readonly number[], x: number) => number[]
        • (y: readonly number[], x: number): number[]
        • Parameters

          • y: readonly number[]
          • x: number

          Returns number[]

    Returns number[]

Generated using TypeDoc