MASON-INTEREST-L Archives

March 2017

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Mon, 6 Mar 2017 19:05:16 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (15 lines)
On Mar 6, 2017, at 6:50 PM, Axel Kowald <[log in to unmask]> wrote:

> Btw., how do you manage to cull the data without distorting the shape of the diagram ?
> 
> Do you still keep all data points and then only display a subset, or do you really delete data ?


We're really deleting data.  

There are different culling strategies, and you can implement your own.  But the strategy we're using is in MinGapDataCuller.java.  Let the maximum size be N.  Then:

1. Let the chart grow to N in size.
2. Until the chart is N/2+1 in size, repeat:
	2A. Remove the point whose left and right neighbors are closest to one another.  Break ties by choosing the earlier point.  Never remove the first and last points in the series.

ATOM RSS1 RSS2