jsLSA is a JavaScript library for linear system analysis, providing tools for static and real-time analysis. This README provides a quick start guide and essential information for using the library.
jsLSA can be directly downloaded from the GitHub repository. Use the following link to download the latest version:
You can install jsLSA using npm or Yarn. Use the following commands:
npm install jslsa
yarn add jslsa
To use jsLSA in your project, follow the steps below:
const system = new jsLSA(Wn, Zeta, K, At, maxRealTimeSamples);
// Input for static analysis (Dirac's step)
const input = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 ...];
// Perform static analysis
const staticAnalysis = system.simpleLinearSimulation(input);
// Display results on a chart
// (chart code and parameters)
// Additional details about the transfer function:
// - Wn (ωₙ): 2.4
// - Zeta (ζ): 0.2
// - K: 1
// - At (Δt): 0.1
const system = new jsLSA(Wn, Zeta, K, At, maxRealTimeSamples = 2000);
// Input for real-time analysis
const realTimeAnalysis = system.realTimeLinearSimulation(input);
// Display real-time analysis results
// (chart code and parameters)
You can understand the engineering behind jsLSA by following the next link in the tech Docs: Engineering Behind jsLSA
You can find live examples for static and real-time jsLSA usage: