Class sincFunction


public class sincFunction
extends functions

sincFunction Calculating the sinc function not integrated into the Gui as an undependend function Author: Christiane Adler

Field Summary

boolean
button1pressed
boolean
button2pressed
JTextArea
funktionFormula
double
maxx
double
maxy
double
minx
double
miny
(package private) gui
myGui
JLabel
platzhalterLabel
rectangulaimpulseFunction
rectFct
JLabel
var1FctText
JLabel
var2FctText
(package private) double
varCfct
(package private) double
varCfct2
(package private) double
varDfct
(package private) double
varDfct2

Fields inherited from class .functions

FIsDirac, FTFImaginaerIsDirac, FTFReellIsDirac, complexy, diracFTFxylength, diracxylength, end, endFT, extrema, formelF, formelFTF, functionName, functionPanel, funktionFormula, isMirrowFunction, maxx, maxxFT, maxy, minx, minxFT, miny, shiftComplex, start, startFT, var1Fct, var2Fct, var3Fct, varShiftfct, variablenPanel, x1AxialCaption, x1AxialCaption2, x1FTAxialCaption, x1FTAxialCaption2, x2AxialCaption, x2AxialCaption2, x2FTAxialCaption, x2FTAxialCaption2, y1AxialCaption, y1AxialCaption2, y1FTAxialCaption, y1FTAxialCaption2, y2AxialCaption, y2AxialCaption2, y2FTAxialCaption, y2FTAxialCaption2

Constructor Summary

sincFunction(gui mainGui)

Method Summary

Complex
calculatePixelFTFct(double x, double test)
Calculating the H(f)-value in the frequency domain and returning it as a Complex
Complex
calculatePixelFct(double x, double test)
Calculating the h(t)-value in the time domain and returning it as a Complex
Complex
getExtrema(double x, double ix)
Complex
getExtremaFT(double x, double ix)
void
setFTFunction()
void
setFTFunctionTextArea(int fi)
void
setFctLabel()
void
setVariables()
getting the variables from the Gui has to be called, after setting the children and before calculating the y-value
void
setVariables(double newvarCfct, double newvarDfct)
setting the variables from outside has to be called, after setting the children and before calculating the y-value

Methods inherited from class .functions

calculatePixelFTFct, calculatePixelFct, getExtrema, getExtremaFT, mirrowFunction, setChild1, setChild2, setFTFunctionTextArea, setFctLabel, setVariables, setVariablesLimits, setVariablesLimits2, shiftFunction

Field Details

button1pressed

public boolean button1pressed

button2pressed

public boolean button2pressed

funktionFormula

public JTextArea funktionFormula

maxx

public double maxx

maxy

public double maxy

minx

public double minx

miny

public double miny

myGui

(package private)  gui myGui

platzhalterLabel

public JLabel platzhalterLabel

rectFct

public rectangulaimpulseFunction rectFct

var1FctText

public JLabel var1FctText

var2FctText

public JLabel var2FctText

varCfct

(package private)  double varCfct

varCfct2

(package private)  double varCfct2

varDfct

(package private)  double varDfct

varDfct2

(package private)  double varDfct2

Constructor Details

sincFunction

public sincFunction(gui mainGui)

Method Details

calculatePixelFTFct

public Complex calculatePixelFTFct(double x,
                                   double test)
Calculating the H(f)-value in the frequency domain and returning it as a Complex
Overrides:
calculatePixelFTFct in interface functions

calculatePixelFct

public Complex calculatePixelFct(double x,
                                 double test)
Calculating the h(t)-value in the time domain and returning it as a Complex
Overrides:
calculatePixelFct in interface functions

getExtrema

public Complex getExtrema(double x,
                          double ix)
Overrides:
getExtrema in interface functions

getExtremaFT

public Complex getExtremaFT(double x,
                            double ix)
Overrides:
getExtremaFT in interface functions

setFTFunction

public void setFTFunction()

setFTFunctionTextArea

public void setFTFunctionTextArea(int fi)
Overrides:
setFTFunctionTextArea in interface functions

setFctLabel

public void setFctLabel()
Overrides:
setFctLabel in interface functions

setVariables

public void setVariables()
getting the variables from the Gui has to be called, after setting the children and before calculating the y-value
Overrides:
setVariables in interface functions

setVariables

public void setVariables(double newvarCfct,
                         double newvarDfct)
setting the variables from outside has to be called, after setting the children and before calculating the y-value