averbraeck / opentrafficsim

Open Source Multi-Level Traffic Simulator
BSD 3-Clause "New" or "Revised" License
28 stars 8 forks source link

EGTF to separate project #97

Open WJSchakel opened 6 months ago

WJSchakel commented 6 months ago

EGTF is now part of ots-draw, but it is a completely standalone feature that we use within OTS. Package org.opentrafficsim.draw.egtf only relies on standard java. Package org.opentrafficsim.draw.egtf.typed also depends on DJUNITS.

The filter might be used outside of OTS. By using Quantity.SPEED_SI, Quantity.FLOW_SI, Quantity.DENSITY_SI, Egtf.addPointDataSI(Quantity, ...), Egtf.addVectorDataSI(Quantity, ...), Filter filter = Egtf.filterSI(..., Quantity...), and Filter.getSI(Quantity), most standard usage is available. There is also a fast-fourier implementation, and instead of using a Quantity one can also use a DataStream, which is a combination of a DataSource and a Quantity, and which has data reliability information for free flow and congested data.

We can place all this in a separate project, with a separate website explaining how to download and use the filter, e.g. in Matlab or Python.