# 4.5 Java1486-fun with java, understanding the fast fourier transform  (Page 13/14)

 Page 13 / 14
Figure 10. The numeric output for Case A.
```Case A Real:1.0 0.923 0.707 0.382 0.0 -0.382 -0.707 -0.923 -1.0 -0.923 -0.707 -0.382 0.0 0.382 0.707 0.923imag: 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.00.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0```

If you plot the real and imaginary values in Figure 10 , you will see that they match the transform output shown in graphic form in Figure 9 .

## Case B code

The code from the main method for Case B is shown in Listing 6 . Note that the input complex series contains non-zero values in both the real and imaginaryparts.

Listing 6. Case B code.
```System.out.println("\nCase B"); double[]realInB = {0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1};double[] imagInB ={0,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,-1}; double[]realOutB = new double[16];double[] imagOutB = new double[16]; transform.doIt(realInB,imagInB,2.0,realOutB,imagOutB); display(realOutB,imagOutB);```

## Case B in graphical form

Case B is shown in graphical form in Figure 11 .

Figure 11. Case B in graphical form.

## Case B output in numeric form

The output from the code in Listing 6 is shown in Figure 12 .

Figure 12. Case B output in numeric form.
```Case B Real:1.0 0.923 0.707 0.382 0.0 -0.382 -0.707 -0.923 -0.999 -0.923 -0.707 -0.382 0.0 0.382 0.707 0.923imag: -1.0 -0.923 -0.707 -0.382 0.0 0.382 0.707 0.9231.0 0.923 0.707 0.382 0.0 -0.382 -0.707 -0.923```

If you plot the values for the real and imaginary parts from Figure 12 , you will see that they match the real and imaginary output shown in Figure 11 .

## Case C code

The code extracted from the main method for Case C is shown in Listing 7 .

Listing 7. Case C code.
```System.out.println("\nCase C"); double[]realInC = {1.0,0.923,0.707,0.382,0.0,-0.382,-0.707,-0.923,-1.0,-0.923,-0.707,-0.382,0.0, 0.382,0.707,0.923};double[] imagInC ={0.0,-0.382,-0.707,-0.923,-1.0,-0.923, -0.707,-0.382,0.0,0.382,0.707,0.923,1.0,0.923,0.707,0.382}; double[]realOutC = new double[16];double[] imagOutC = new double[16]; transform.doIt(realInC,imagInC,16.0,realOutC,imagOutC); display(realOutC,imagOutC);```

The complex input series for Case C is a little more complicated than that for either of the previous two cases. Note in particular that the input complexseries contains non-zero values in both the real and imaginary parts. In addition, very few of the values in the complex series have a value of zero.

(The values of the complex samples actually describe a cosine curve and a negative sine curve as shown in Figure 13 .)

## The graphic form of Case C

Case C is shown in graphic form in Figure 13 .

Figure 13. The graphic form of Case C.

The Fourier transform is reversible

One of the interesting things to note about Figure 13 is the similarity of Figure 13 and Figure 5 . These two figures illustrate the reversible nature of the Fourier transform.

If I had used a positive input real value instead of a negative input real value in Figure 5 , the input of Figure 5 would look exactly like the output in Figure 13 , and the output of Figure 5 would look exactly like the input of Figure 13 .

With that as a hint, you should now be able to figure out how I used a mouse and drew the perfect sine and cosine curves in Figure 13 . In fact, I didn't draw them at all. Rather, I used my mouse and drew the output, andthe applet gave me the corresponding input automatically.

ology means a study of
is a greek word means soul
SharaAmor
science
Tina
a branch of knowledge
Kanchan
psych means soul and ology means to study.
Wajid
***interestinglydifferenttopics.blogspot.com/2020/10/reflexes-psychological-debate.html Do check this out and please correct me if I'm wrong anywhere in this
Factors that affect learning?
I am struggling with survivors guilt and complicated grief after traumatic death of spouse. how to cope.
Try to talk with someone you trust and join people who makes you feel worthy. try to help someone. Helping someone makes you feel better
sherlock
I think you must seek professional help.
I am extremely sorry for your loss...I know that the pain of your loss is overwhelming and that you are experiencing all kinds of difficult and unexpected emotions. please don't get me wrong but the best way to cope is to move on..i know its hard..but that's the only way..(continued.)
Princess
stop burdening yourself with thoughts that say you could have done something..you couldn't..your just a human being and you cant always be a superman who saves the day..please dont feel guilty when you have no reason to..(cont.)
Princess
learn to love yourself again..learn to live ..for yourself,for the people who love you and need you in their lives.live for people who you once loved...Think about how you can make your life meaningful once again.It might seem impossible but trust me its necessary ..
Princess
Let your feelings of pain out ..you dont have to suffer ..talk to people whom you trust and love. take care and have a beautiful life ahead.
Princess
First and foremost -- Wow Rowdy! You have been through a highly difficult situation in your life, hands down. As a wife, I simply cannot phathom nor imagine slightly the feelings and thoughts you bare and I'm sure as these words do not help and hit rewind; my heart and prayers are going out to you-
Stephanie
today. I will say as well, everything you are feeling and going through, please know that these feelings and thoughts are all allowed, it is okay for you to find yourself feeling or thinking things that you would never find yourself wanting especially given the situation. I'm sure you question --
Stephanie
yourself, which in turn could make you question who you are right now and what this means for you as a person now and in the future. This is all okay, but there will have to be an understanding as to how to grow from these feelings and thoughts in a more humane manner l as these feelings and ---
Stephanie
thoughts could take a turn for a much more negative outcome as you find yourself trapped in a darkness that, if strong enough, trials and tribulations take years of complex development and experience, less strong minded individuals sometimes either never find the light, or end up being stuck in ----
Stephanie
a subconscious netherworld as they are consumed given the manipulation that was not understood to overcome. It results in losing all sense of heart, faith, soul and intelligence so that you don't grow, which in your case, growth is crucial. This is what your spouse will do their best in trying -----
Stephanie
to guide you through; keep an your senses wide open so that you can learn when she is trying to communicate.
Stephanie
Angela
Thanks angela
Ali
Ali
what is this
Maryam
Geo
Geo
actually I don't know
Maryam
I badly need some for my research :<
Geo
But I need that😥
Mohammed
***courses.lumenlearning.com /boundless-sociology/chapter/theories-of-socialization/
Jobin
branches of psychology
neuropsychology
jeddy
behaviorism
Mira
Legal psychology
Miljana
Developmental psychology, Sports psychology , Clinical psychology , Marketing psychology , counseling psychology , Biological psychology, Educational psychology , Positive psychology etc.
child.psychology
Nss
social, occupational psychology
jeddy
what does it mean when the temporal lobe is anterior to occipital lobe
the cortex refers to what part of the brain
John
the cortex refers to what part of the brain
John
cerebral cortex
jeddy
behind?
jeddy
in what time of situation is training most useful?
Nyakuei
i think its not about suitation, its about the thing tatz need training.
gokul
training is possibly warranted for all situations.
rhoda
I would think that training should be an ungoing thing. That's before, during and after. just in case there's a reoccurrence
Angela
any time
Aaronz
what is Karma
I think the summation of good and bad deeds you do in your life. Accidentally or otherwise.
Yes. I totally agree.
ana
And if it is bad then the root must have been too.
ana
Yes , In Hinduism we also believe that our parent's Karma also applies to us ! Don't know about that , but it kept people in check .
Adding to Swarada point. karma can be good or bad. both will have consequences. karma is biasedness you have shown in your life. like a king could not have two rules for normal man and his son, that comes under karma.
Sujeet
Oh perfectly said!
Ok. It is also said that when one does something... bad or good..it will come back to you 10 folds of the same.
ana
yea that too ! I remember my mother always said if u stole someone's 10 rupees ur 100 will be stolen ( excuse my English ! I'm a non - English speaking person)
karma is nothing but what one usually mean when they say- what you sow, so shall you reap.
Alisha
certainly
Crazy
more important.. this concept was told by lord Krishna as part of spirituality, to focus on your good deed ,the purpose you are born for and your responsibilities. Not for hoping that bad will happen with people who made you feel bad. just giving example ;)
Sujeet
karma is the boomerang of your actions. what u put out in the universe u get back
David
Who is the founder of psychology
Wilhelm wundt
Amanda
Wilhelm Wundt
Sneha
William wundth
Ihrar
Wilhelm Wundt
Megha
and William James
Amanda
Wilhelm Wundt
Wilhelm Wundt is the founder of structuralism
Angela
Yes and also the "Father of Psychology" I think the correct word is Father not Founder.
oh ok. noted
Angela
i believe it goes beyond him I believe it is Ancient but un formalized
David
David
Oh thanks! But u summarised it well!
what is up my fellow psych peeps!!
what are some academic research on developmental psychology
Chezy
Sawrada Founder of Psychology is W.Wundt but Father of Psychology is Sigmund Freud...
Wajid
what are some good schools to study psychology?
George Mason, Penn State, UVA, university of Michigan
Jasmine
Hi I'm currently doing my experimental psychology research can you suggest a topic or research topic for my research thank you and please see 😊
Hello Jerico. I could help you out with some ideas if you're interested!
Yasmine
can u give me some ideas too?
Geo
For sure. It depends if you're trying to do an experiment (using statistics probably) or a case study what are you aiming for?
Yasmine
Hello Jerico. Try to opt for something simple and easy to do. I wouls say perhaps study the effects of color on concentration? You could get a group of people and have them take a memory test (you can find some online) in a white room for example. Then have them take another memory test
Yasmine
similar to the first one but in a different room and then you check the responses if the performance is better
Yasmine
but you have to know that a lot of factors will interfere in the performance such as mental state etc so make sure to choose a certain specific population. that's very important
Yasmine
you could be a bit more specific about it , to isolate the variables that can mess it up like age, sex, etc... you gotta take that into account
Yasmine
so that the results get somewhat accurate
Yasmine
that is very detailed information I really like it thank you very much 😊 your so very kind
Jerico
You're very welcome
Yasmine
what are your interests in general?
Yasmine
Althogh I'm persuing botany and engineering.... but I also want to study human behaviour and psychology.... I would like if anyone can share their knowledge with me !!!!
Crazy
I'm interested on effect of electroconvulsive therapy on people having a depression
Jerico
What is Electroconvulsive therapy?
Pixeled
Astral Projection
Mansi
Electroconvulsive therapy (ECT) is a medical treatment that is most commonly used in patients with severe major depression.
Jerico
What are the expected dutties functions and responsibilities of a head of an agency based on the principles, Practice of industrial psychology?
what are the psychological characteristics expected from an employee wether regular or occupying a position?
Paul
I can't able to differentiate between clinical psychologists and psychologists...
psychologist is A wider term including all the psychologists from ol the fields of psychology, e.g business psychologist, sports psychologist, marketing psychologist, clinical psychologist, counciling psychologist...where as clinical psychologist is a a psychologist who helps the people to overcome
Irm
or deal wd mental problems, like depression, phobias, schizophrenia, etc
Irm
I have a Question
Mushtaque
where can I get Old Question Paper's of Psychology Entrance Exam
Mushtaque
Ma psychology from ignou will be helpful becoz Iam not from psychology background plz suggest if any online source not distance learning.
Fazilat
past papers of psychology from where I can get
Riaz
Got questions? Join the online conversation and get instant answers!