Sorry for being too vague, I guess it is one of those situations where the question is obvious to me even from the initial statement that I can't believe no-one else sees it as such.

What I have is a row count from a number of databases plotted against time. Rows are added to one database and are copied to the others. In a normal situation the graphs will line up or nearly line up, the row count in each database will be the same or nearly the same but because copy and sample times can vary there can be delays to the rows counts on one or more database. (Additionally it is possible for lots of rows to be added and then removed from the main database before the copy mechanism kicks in so those rows may not make it to one or more copy at all, this is not a problem).

An error situation needs reporting where the counts get out of sync and remain out of sync shown on the plots by the lines not lining up at all. The error can "clear" if and when the plots line up again (or nearly so).

Thinking things over, I would need to try to line up the time values and then compare the row counts, and report where the row counts differ more than a certain number of times in succession by a sufficient value to worry about.


In reply to Re: Comparing graph shapes or soft matching. by tweetiepooh
in thread Comparing graph shapes or soft matching. by tweetiepooh

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.