org.jscience.engineering.control
Class AtoD

java.lang.Object
  extended by org.jscience.engineering.control.BlackBox
      extended by org.jscience.engineering.control.AtoD

public class AtoD
extends BlackBox

DOCUMENT ME!


Field Summary
 
Fields inherited from class org.jscience.engineering.control.BlackBox
deadTime, deltaT, fixedName, forgetFactor, inputS, inputT, integMethod, integrationSum, maptozero, name, nPlotPoints, orderPade, outputS, outputT, padeAdded, sampFreq, sampLen, sDenom, sDenomDeg, sDenomDegPade, sDenomPade, sNumer, sNumerDeg, sNumerDegPade, sNumerPade, sPoles, sPolesPade, sValue, sZeros, sZerosPade, time, zDenom, zDenomDeg, zNumer, zNumerDeg, zPoles, ztransMethod, zValue, zZeros
 
Constructor Summary
AtoD()
           
AtoD(int nBits, double vRef)
           
 
Method Summary
static int[] addBinary(int[] aa, int[] bb)
           
 int[] binaryArray()
           
 java.lang.String binaryOutput()
           
 void calcOutput()
           
 void checkInput()
           
 double clippingError()
           
 long decimalOutput()
           
static int[] decimalToBinary(long decimal, int nBits)
           
 long getMaximumDecimal()
           
 java.lang.String getRange()
           
 double getSQNR()
           
 boolean getTrueAtoDoption()
           
 double getVref()
           
 double maximumQuantizationError()
           
static int[] negateBinary(int[] binary)
           
 double quantizationError()
           
 void setInput(double input)
           
 void setRangeOption(int opt)
           
 double voltageOutput()
           
 
Methods inherited from class org.jscience.engineering.control.BlackBox
addDeadTimeExtras, calcPolesZerosS, deadTimeWarning, evalMagTransFunctS, evalMagTransFunctS, evalMagTransFunctS, evalMagTransFunctZ, evalMagTransFunctZ, evalPhaseTransFunctS, evalPhaseTransFunctS, evalPhaseTransFunctS, evalPhaseTransFunctZ, evalPhaseTransFunctZ, evalTransFunctS, evalTransFunctS, evalTransFunctS, evalTransFunctZ, evalTransFunctZ, getCurrentInputT, getCurrentOutputT, getCurrentOutputT, getCurrentTime, getDeadTime, getDeltaT, getForgetFactor, getInputS, getInputT, getIntegMethod, getMaptozero, getName, getNplotPoints, getOutputS, getOutputS, getOutputT, getPadeOrder, getPolesS, getPolesZ, getS, getSampFreq, getSampleLength, getSdenom, getSdenomDeg, getSnumer, getSnumerDeg, getTime, getZ, getZdenom, getZdenomDeg, getZerosS, getZerosZ, getZnumer, getZnumerDeg, getZtransformMethod, impulseInput, impulseInput, inverseTransform, mapstozAdHoc, mapstozAdHoc, orderPade, pade, plotBode, plotPoleZeroS, plotPoleZeroZ, rampInput, rampInput, rampInput, rampInput, resetZero, setDeadTime, setDeadTime, setDeltaT, setForgetFactor, setInputS, setInputT, setIntegrateOption, setIntegrateOption, setMaptozero, setName, setNplotPoints, setPadeOrder, setS, setS, setS, setSampFreq, setSampleLength, setSdenom, setSdenom, setSdenom, setSnumer, setSnumer, setSnumer, setZ, setZ, setZdenom, setZdenom, setZdenom, setZnumer, setZnumer, setZnumer, setZtransformMethod, stepInput, stepInput, timeTerm, transferPolesZeros, transientResponse, zeroPoleCancellation, zTransform, zTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtoD

public AtoD(int nBits,
            double vRef)

AtoD

public AtoD()
Method Detail

setRangeOption

public void setRangeOption(int opt)

getRange

public java.lang.String getRange()

getTrueAtoDoption

public boolean getTrueAtoDoption()

getVref

public double getVref()

setInput

public void setInput(double input)

checkInput

public void checkInput()

getMaximumDecimal

public long getMaximumDecimal()

maximumQuantizationError

public double maximumQuantizationError()

calcOutput

public void calcOutput()

getSQNR

public double getSQNR()

voltageOutput

public double voltageOutput()

decimalOutput

public long decimalOutput()

decimalToBinary

public static int[] decimalToBinary(long decimal,
                                    int nBits)

negateBinary

public static int[] negateBinary(int[] binary)

addBinary

public static int[] addBinary(int[] aa,
                              int[] bb)

binaryOutput

public java.lang.String binaryOutput()

binaryArray

public int[] binaryArray()

quantizationError

public double quantizationError()

clippingError

public double clippingError()