Class RK4Solver.Solution

java.lang.Object
com.hissain.jscipy.signal.math.RK4Solver.Solution
Enclosing class:
RK4Solver

public static class RK4Solver.Solution extends Object
Result class to hold the solution
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double[]
    Array of time points
    final double[]
    Array of solution values corresponding to time points
  • Constructor Summary

    Constructors
    Constructor
    Description
    Solution(double[] t, double[] y)
    Constructs a new Solution object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Prints the solution (time and y values) to the console.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • t

      public final double[] t
      Array of time points
    • y

      public final double[] y
      Array of solution values corresponding to time points
  • Constructor Details

    • Solution

      public Solution(double[] t, double[] y)
      Constructs a new Solution object.
      Parameters:
      t - Array of time points.
      y - Array of solution values corresponding to time points.
  • Method Details

    • print

      public void print()
      Prints the solution (time and y values) to the console.