Results 1 to 13 of 13
  1. #1
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Do number series represent sine wave?

    I have a set of about 1000 numbers which if plotted may produce a sine wave pattern (a series of sine waves in continuity). How can I find out if these numbers represent sine wave pattern using java?

    Thanks in advance.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Do number series represent sine wave?

    How would you do this by hand, without a computer?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: Do number series represent sine wave?

    I can only think of plotting a graph and seeing it !

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,784
    Blog Entries
    7
    Rep Power
    21

    Default Re: Do number series represent sine wave?

    Try an autocorrelation (google is your friend here) on the signal and the signal itself, shifted n samples. For the value of n where the correlation is at its maximum you have found the frequency of the sine, i.e. n*st where st is the sample time.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: Do number series represent sine wave?

    Thanks. I am checking google.

  6. #6
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: Do number series represent sine wave?

    It is surprising that one needs complex programs and algorithms to identify even simple shapes. Is there any simple method to differentiate between 2 sets of points which on plotting show simple shapes of V and U respectively.

  7. #7
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,784
    Blog Entries
    7
    Rep Power
    21

    Default Re: Do number series represent sine wave?

    Quote Originally Posted by rng View Post
    It is surprising that one needs complex programs and algorithms to identify even simple shapes. Is there any simple method to differentiate between 2 sets of points which on plotting show simple shapes of V and U respectively.
    Try the NN aproach (Neural Network). A BAM (Bidirectional Associative Memory) or Kohonen network are quite suitable. Hopfield networks have too low storage capacity for image recognition. Beware though: this isn't trivial and maybe, after you've struggled your way through it, you'll appreciate simple eyes and the brain's processing power ;-)

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  8. #8
    rng
    rng is offline Member
    Join Date
    Jan 2012
    Posts
    23
    Rep Power
    0

    Default Re: Do number series represent sine wave?

    Thanks for your suggestions. Can you recommend some website/software to quickly get started in using neural networks for simple problem like I stated above?

  9. #9
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,784
    Blog Entries
    7
    Rep Power
    21

    Default Re: Do number series represent sine wave?

    Google for "character recognition Java".

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  10. #10
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Do number series represent sine wave?

    Quote Originally Posted by rng View Post
    It is surprising that one needs complex programs and algorithms to identify even simple shapes.
    Took evolution rather a long time to develop such pattern recognition...

  11. #11
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,784
    Blog Entries
    7
    Rep Power
    21

    Default Re: Do number series represent sine wave?

    Quote Originally Posted by Tolls View Post
    Took evolution rather a long time to develop such pattern recognition...
    A spider can grow new lenses for their eyes overnight; I wonder why they lose them every day; stupid little animals ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  12. #12
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Do number series represent sine wave?

    Think of them like disposable contact lenses.
    See?
    Nature's waay ahead of us on these things.

  13. #13
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,784
    Blog Entries
    7
    Rep Power
    21

    Default Re: Do number series represent sine wave?

    Quote Originally Posted by Tolls View Post
    Think of them like disposable contact lenses.
    See?
    Nature's waay ahead of us on these things.
    Obviously there are no feriocious spider eaters active during the night; lazy bums, those spider eaters ... nature is kind of stupid ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Represent adj matrix
    By SHE in forum New To Java
    Replies: 6
    Last Post: 06-06-2011, 10:58 PM
  2. sine and cosine
    By Dennis in forum Advanced Java
    Replies: 9
    Last Post: 11-13-2010, 06:45 AM
  3. Drawing the sine curve
    By bumblyb33 in forum Java 2D
    Replies: 7
    Last Post: 03-26-2009, 11:29 PM
  4. Replies: 0
    Last Post: 06-28-2008, 10:25 PM
  5. Replies: 1
    Last Post: 08-07-2007, 07:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •