pzapplet
Class StepResponse

java.lang.Object
  extended bypzapplet.StepResponse

public class StepResponse
extends java.lang.Object

Calculates and stores the step response of a given system of poles and zeros.

Author:
Brian Williams

Constructor Summary
StepResponse(ORG.netlib.math.complex.Complex[] zeros, ORG.netlib.math.complex.Complex[] poles)
          This creates the step response data for a given system.
 
Method Summary
 boolean getErrorMsg()
          Possible error when there are more zeros than poles.
 double getGain()
           
 double[] getStepResponseData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepResponse

public StepResponse(ORG.netlib.math.complex.Complex[] zeros,
                    ORG.netlib.math.complex.Complex[] poles)
This creates the step response data for a given system. The system must be represented by two arrays of complex numbers, the poles and zeros of the system.

Parameters:
zeros - - Complex[] representing the zeros of the system
poles - - Complex[] representing the poles of the system
Method Detail

getStepResponseData

public double[] getStepResponseData()
Returns:
double[] representing the step response of the system

getErrorMsg

public boolean getErrorMsg()
Possible error when there are more zeros than poles.

Returns:
true if there was an error calculating the step response

getGain

public double getGain()
Returns:
The gain of the current system