Skip to content

A simulation algorithm for responses of a second-order nonlinear system to a given input. Works for both static and real-time analysis

License

Notifications You must be signed in to change notification settings

TIMdavidIglesias/jsLSA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsLSA - JavaScript Linear System Analysis

jsLSA Logo

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.

Table of Contents

Download

jsLSA can be directly downloaded from the GitHub repository. Use the following link to download the latest version:

Download jsLSA

Installation

You can install jsLSA using npm or Yarn. Use the following commands:

NPM

npm install jslsa

YARN

yarn add jslsa

Usage

To use jsLSA in your project, follow the steps below:

Static Analysis

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

Real-Time Analysis

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)

Engineering behind

You can understand the engineering behind jsLSA by following the next link in the tech Docs: Engineering Behind jsLSA

Examples

You can find live examples for static and real-time jsLSA usage:

Edit xenodochial-violet-428ylt

About

A simulation algorithm for responses of a second-order nonlinear system to a given input. Works for both static and real-time analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published