topic Re: How to do spectral analysis? in Discussions
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8245#M8239
<HTML><HEAD></HEAD><BODY><P>Excellent! Thanks for the info on those data. I am glad my analysis matches what you are expecting. JMP is actually very well suited for the statistical analysis of the frequency domain data, but some other tools (like MATLAB) are well-suited to do specialized things like perform FFTs on arbitrarily-sized arrays, filter designs, convolution etc. This is why the extensibility in JMP is great -- being able to reach out to SAS, MATLAB and R affords the ability to leverage these tools when needed and then bring the data back to JMP for visualization and analysis. </P><P></P><P>I ran your data through a FFT application I wrote all in JSL -- it works just like a JMP Platform:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5858_Screen Shot 2014-03-27 at 6.12.03 PM.png" style="width: 531px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/328iEAAF8F61E4FE93AE/image-size/medium?v=1.0&px=400" role="button" title="5858_Screen Shot 2014-03-27 at 6.12.03 PM.png" alt="5858_Screen Shot 2014-03-27 at 6.12.03 PM.png" /></span></P><P>What it's doing when you click OK is connecting to MATLAB and running some preexisting code that converts the time-domain data to the frequency domain and then returns the data back to a new JMP data table for further analysis and graphing. If I needed to do additional processing of the signal in MATLAB -- say run a band-pass filter for example -- I could do that in MATLAB as well before returning the data to JMP. </P><P></P><P>But then when the data is back in JMP, I can analyze or visualize as I want. For example, I used a local data filter to just focus on the part of the signal where the rectified AC source components would be > 3 Hz.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5859_Screen Shot 2014-03-27 at 6.21.13 PM.png" style="width: 938px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/329i964EA92D96186272/image-size/medium?v=1.0&px=400" role="button" title="5859_Screen Shot 2014-03-27 at 6.21.13 PM.png" alt="5859_Screen Shot 2014-03-27 at 6.21.13 PM.png" /></span></P><P>And then use Rows > Row Selection > Select Dominant to focus on the points on the Pareto Front. JMP identified 33 FFT bins, which I can subset using Tables > Subset. If I check the "linked to original data table" then the subset and the full data set will be linked. I put a + marker and colored these points in red in the subset, and they are are colored back in the original data table.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5860_Screen Shot 2014-03-27 at 6.25.20 PM.png" style="width: 938px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/330iA26D549DACE5A675/image-size/medium?v=1.0&px=400" role="button" title="5860_Screen Shot 2014-03-27 at 6.25.20 PM.png" alt="5860_Screen Shot 2014-03-27 at 6.25.20 PM.png" /></span></P><P>Depending on what question you are trying to answer will dictate the best way to analyze these data, but once the transformed data is back into JMP, you can explore it any way you want. @Xan's suggestion to use the FFT function in JSL is great too. I just choose to use MATLAB because I already have a library of code that does a variety of signal processing things in MATLAB, and I also often need to filter data using IIR or FIR filters as part of the analysis step, a task that MATLAB is well-suited for (for both designing the filters, and performing the filtering step).</P></BODY></HTML>Tue, 18 Oct 2016 20:36:31 GMTdanielvalente2016-10-18T20:36:31ZHow do I perform spectral analysis in JMP?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8241#M8235
<P>I've got a data series of over 800k points that I'd like to look at in the frequency domain. I tried doing a "Time Series Analysis" to create spectral density data, but JMP just hangs. I let it hang for several minutes, and then my graphics card died... quite a coincidence!</P>
<P> </P>
<P>The data file is attached if you want to try it out, first column is the time stamp in seconds, second column is the data. Please let me know if there is a way to do this.</P>
<P> </P>
<P>Thanks,</P>
<P>Jason</P>Tue, 12 Sep 2017 19:42:31 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8241#M8235sensij2017-09-12T19:42:31ZRe: How to do spectral analysis?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8242#M8236
<HTML><HEAD></HEAD><BODY><P>The Spectral Density command in Time Series is apparently using a slow algorithm. There is a JSL function called "FFT" that will use a fast algorithm, but only if the number of points is a nice round number (has lots of small factors). For instance, if I truncate your data to exactly 800,000 rows, the following JSL returns immediately:</P><P></P><P>data = Column( “y” ) << get values; Show( N Rows( data ) );</P><P>f = FFT( {data} ); Show( N Rows( f[1] ) );</P><P>Current Data Table() << New Column("freq", Set Values( f[1] ));</P></BODY></HTML>Wed, 26 Mar 2014 21:07:35 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8242#M8236XanGregg2014-03-26T21:07:35ZRe: How to do spectral analysis?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8243#M8237
<HTML><HEAD></HEAD><BODY><P>Ran these data through an FFT analysis script I have written in MATLAB using the JMP interface to MATLAB in JMP 11. Looks like your SR is 1000Hz, so this gives you resolution up to your Nyquist freq. of 500 Hz. Lot's of LF energy towards DC, but there does seem to be some interesting peaks between 40 Hz - 300 Hz. Is this the type of result you might expect for these data?</P><P></P><P>Plotted in Graph Builder with the results returned from MATLAB:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5854_Spectral.png" style="width: 590px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/327i0AA6D286618FAFA2/image-size/medium?v=1.0&px=400" role="button" title="5854_Spectral.png" alt="5854_Spectral.png" /></span></P></BODY></HTML>Tue, 18 Oct 2016 20:36:10 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8243#M8237danielvalente2016-10-18T20:36:10ZRe: How to do spectral analysis?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8244#M8238
<HTML><HEAD></HEAD><BODY><P>Thanks for looking at it! Yes, I found some other software (Labchart, by AD Instruments) to do the FFT, and agree that there are a few interesting peaks. The 120 Hz and 240 Hz are indicative of noise from a rectified AC source. Some of the < 1 Hz energy resolves into peaks with a consistent multiple, possibly correlating to the rotational frequency of mechanical components in the system.</P><P></P><P>Mostly I posted to see if there was some functionality in JMP that I had not been using properly, but it appears that frequency domain statistical analysis is really not their thing.</P></BODY></HTML>Thu, 27 Mar 2014 21:24:50 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8244#M8238sensij2014-03-27T21:24:50ZRe: How to do spectral analysis?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8245#M8239
<HTML><HEAD></HEAD><BODY><P>Excellent! Thanks for the info on those data. I am glad my analysis matches what you are expecting. JMP is actually very well suited for the statistical analysis of the frequency domain data, but some other tools (like MATLAB) are well-suited to do specialized things like perform FFTs on arbitrarily-sized arrays, filter designs, convolution etc. This is why the extensibility in JMP is great -- being able to reach out to SAS, MATLAB and R affords the ability to leverage these tools when needed and then bring the data back to JMP for visualization and analysis. </P><P></P><P>I ran your data through a FFT application I wrote all in JSL -- it works just like a JMP Platform:</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5858_Screen Shot 2014-03-27 at 6.12.03 PM.png" style="width: 531px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/328iEAAF8F61E4FE93AE/image-size/medium?v=1.0&px=400" role="button" title="5858_Screen Shot 2014-03-27 at 6.12.03 PM.png" alt="5858_Screen Shot 2014-03-27 at 6.12.03 PM.png" /></span></P><P>What it's doing when you click OK is connecting to MATLAB and running some preexisting code that converts the time-domain data to the frequency domain and then returns the data back to a new JMP data table for further analysis and graphing. If I needed to do additional processing of the signal in MATLAB -- say run a band-pass filter for example -- I could do that in MATLAB as well before returning the data to JMP. </P><P></P><P>But then when the data is back in JMP, I can analyze or visualize as I want. For example, I used a local data filter to just focus on the part of the signal where the rectified AC source components would be > 3 Hz.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5859_Screen Shot 2014-03-27 at 6.21.13 PM.png" style="width: 938px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/329i964EA92D96186272/image-size/medium?v=1.0&px=400" role="button" title="5859_Screen Shot 2014-03-27 at 6.21.13 PM.png" alt="5859_Screen Shot 2014-03-27 at 6.21.13 PM.png" /></span></P><P>And then use Rows > Row Selection > Select Dominant to focus on the points on the Pareto Front. JMP identified 33 FFT bins, which I can subset using Tables > Subset. If I check the "linked to original data table" then the subset and the full data set will be linked. I put a + marker and colored these points in red in the subset, and they are are colored back in the original data table.</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5860_Screen Shot 2014-03-27 at 6.25.20 PM.png" style="width: 938px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/330iA26D549DACE5A675/image-size/medium?v=1.0&px=400" role="button" title="5860_Screen Shot 2014-03-27 at 6.25.20 PM.png" alt="5860_Screen Shot 2014-03-27 at 6.25.20 PM.png" /></span></P><P>Depending on what question you are trying to answer will dictate the best way to analyze these data, but once the transformed data is back into JMP, you can explore it any way you want. @Xan's suggestion to use the FFT function in JSL is great too. I just choose to use MATLAB because I already have a library of code that does a variety of signal processing things in MATLAB, and I also often need to filter data using IIR or FIR filters as part of the analysis step, a task that MATLAB is well-suited for (for both designing the filters, and performing the filtering step).</P></BODY></HTML>Tue, 18 Oct 2016 20:36:31 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/8245#M8239danielvalente2016-10-18T20:36:31ZRe: How to do spectral analysis?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/61780#M33313
<P>Could you share your script and let me try to run FFT in my data?</P>Thu, 28 Jun 2018 09:32:41 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/61780#M33313Fiona07232018-06-28T09:32:41ZRe: How to do spectral analysis?
https://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/62164#M33493
<P>Hello Daniel,</P><P> </P><P>I second Fiona's request. Is it possible for you to share the code?</P><P> </P><P>thanks</P>Wed, 04 Jul 2018 07:58:52 GMThttps://community.jmp.com/t5/Discussions/How-do-I-perform-spectral-analysis-in-JMP/m-p/62164#M33493Nick_PV_tech2018-07-04T07:58:52Z