How can I create test data which mirrors real life?
am 23.01.2008 10:09:40 von freecycle
I've coded an gawk script to read in any no of log files
containing a count of the number of searches per 30
min performed on an application. To test it I've seeded
a rand and created log files with a DateTime field and
a count figure covering a month. The script works OK
but the resultant Excel chart looks nothing like real life.
How would I write a script to create log files where
the count is zero till about 7am, rises to a peak at
11am, back down over lunchtime, a lesser peak at 3pm,
and dies down to zero after 6pm?
I'd be grateful for any function / expression I could use,
|FC
Re: How can I create test data which mirrors real life?
am 23.01.2008 15:54:32 von Glenn Jackman
At 2008-01-23 04:09AM, "freecycle" wrote:
> I've coded an gawk script to read in any no of log files
> containing a count of the number of searches per 30
> min performed on an application. To test it I've seeded
> a rand and created log files with a DateTime field and
> a count figure covering a month. The script works OK
> but the resultant Excel chart looks nothing like real life.
> How would I write a script to create log files where
> the count is zero till about 7am, rises to a peak at
> 11am, back down over lunchtime, a lesser peak at 3pm,
> and dies down to zero after 6pm?
> I'd be grateful for any function / expression I could use,
Um, why don't you use a real log file?
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
Re: How can I create test data which mirrors real life?
am 23.01.2008 17:43:07 von freecycle
On Jan 23, 2:54=A0pm, Glenn Jackman wrote:
> At 2008-01-23 04:09AM, "freecycle" wrote:
>
> > =A0I've coded an gawk script to read in any no of log files
SNIP
> > =A0I'd be grateful for any function / expression I could use,
>
> Um, why don't you use a real log file?
> Glenn Jackman
> "You can only be young once. But you can always be immature." -- Dave Barr=
y
Sorry, should have said, the counting hasn't been turned on yet.
There aint no
real logfiles.
|FC