Giter Club home page Giter Club logo

Comments (1)

seljukgulcan avatar seljukgulcan commented on June 5, 2024

Hi htthYjh,

First of all, I strongly suggest looking at the demo file first. The demo file shows the fundamental steps of trajectory clustering. Hopefully, it should be enough. Or, you can take a look at the report as well.

I was not very experienced with trajectory clustering and python in general when I was doing this project. So, the original code is quite messy, undocumented, and hard to follow. I don't remember the format of the .traj files exactly. However, from other modules, I infer that it is a dictionary of a list of tuples. I give an example:

{
000001: {'path':[(36, 42, 1, 5), (36.1, 42, 1, 5), (36.2, 42, 1, 5)]}
000002: {'path':[(36, 42, 1, 5), (36, 42.1, 1, 5), (36, 42.2, 1, 5)]}
}

each path has the following format [(latitude_1, longitude_1, speed_1, azimuth_1), (latitude_2, longitude_2, speed_2, azimuth_2), ...]. I don't quite remember the units of the fields.

I hope, this answer solves your issue. I'm planning to write a blog post by rewriting some parts of the demo file and giving more detail for different situations since the original code creates a considerable amount of confusion.

from comparing-trajectory-clustering-methods.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.