Class multiplicateFunction


public class multiplicateFunction
extends functions

multiplicateFunction Calculating the multiplication of two functions Author: Christiane Adler

Field Summary

boolean
buttonpressed
private boolean[]
cacheDirac
private int
cachefields_max
double[]
cachey
double[]
cacheyi
private functions
child1
private functions
child2
double
end1
double
end2
(package private) gui
myGui
private int
n
(package private) int
paintx
double
schrittweite
double
start1
double
start2

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

multiplicateFunction(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)
Calculates the extrema
Complex
getExtremaFT(double x, double ix)
Calculates the extrema
void
setArray()
calculating the convolution and saving the result in an array
void
setChild1(functions myChild)
Setting the first function
void
setChild2(functions myChild)
Setting the second function
void
setFTFunctionTextArea(int fi)
void
setVariables()
setting the variables 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

buttonpressed

public boolean buttonpressed

cacheDirac

private boolean[] cacheDirac

cachefields_max

private int cachefields_max

cachey

public double[] cachey

cacheyi

public double[] cacheyi

child1

private functions child1

child2

private functions child2

end1

public double end1

end2

public double end2

myGui

(package private)  gui myGui

n

private int n

paintx

(package private)  int paintx

schrittweite

public double schrittweite

start1

public double start1

start2

public double start2

Constructor Details

multiplicateFunction

public multiplicateFunction(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)
Calculates the extrema
Overrides:
getExtrema in interface functions

getExtremaFT

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

setArray

public void setArray()
calculating the convolution and saving the result in an array

setChild1

public void setChild1(functions myChild)
Setting the first function
Overrides:
setChild1 in interface functions

setChild2

public void setChild2(functions myChild)
Setting the second function
Overrides:
setChild2 in interface functions

setFTFunctionTextArea

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

setVariables

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