Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Peaks Detection algorithm

old_manold_man Posts: 1Member
Dear friends

Can anybody help me doing this:

I have a file that represent population growth readings over time. I want an algorithm that determine the peaks in this data.

Regards

Hani

Comments

  • DrMartenDrMarten Posts: 748Member
    [b][red]This message was edited by DrMarten at 2005-9-24 10:38:49[/red][/b][hr]
    : Dear friends
    :
    : Can anybody help me doing this:
    :
    : I have a file that represent population growth readings over time. I want an algorithm that determine the peaks in this data.
    :
    : Regards
    :
    : Hani
    :
    ----------------------

    Just store the population in a variable. Write this to a small file.

    Compare the new population to the old one andf update the population if necessary.

    In BASIC>>

    If NewPop>OldPop then OldPop=NewPop
    Rem Where NewPop = "New-Population" and OldPop = "Old Population"

    OldPop will always hold the peak population if you manage to store the variable in a file.

    As i don't know which program you want to use for this so i can't offer any further help,sorry.

    Hope this helps?

    DrM



Sign In or Register to comment.