seismic events program

This is a discussion on seismic events program within the C Programming forums, part of the General Programming Boards category; oh hi sorry, my code should say SEISMIC.DAT casn you change it in your version? here is a specimen set ...

  1. #16
    Registered User
    Join Date
    Nov 2003
    Posts
    26
    oh hi sorry, my code should say SEISMIC.DAT casn you change it in your version?

    here is a specimen set of inputs and the corresponding answer for you to try.

    no of measurements to use for short time power = 2 samples
    no of measurements to use for long time power = 5 samples
    the threshold value = 1.5

    the output should be similar to this

    no event at time 0.04
    event at time 0.05
    no event at time 0.06
    no event at time 0.07 and so on, thats just a sample. please test this if you don't mind. thanks for your help, your great!
    1+1 = 0
    if you think that's wrong then you shouldn't be here!!!

  2. #17
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    Well with all your data and suggested input, running rub.c compiled with gcc/linux, I get
    Code:
    Enter number of points for short-window:
    2
    Enter number of points for long-window:
    5
    Possible event at 0.120000 seconds
    Possible event at 0.140000 seconds
    Possible event at 0.280000 seconds
    Possible event at 0.300000 seconds
    Possible event at 0.320000 seconds
    Possible event at 0.340000 seconds
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21