GithubHelp home page GithubHelp logo

work's Introduction

Descripts
    The goal of this Project is to calcualte the score of ROIs, which used to recommend travel trajectories.
    First, read trajectories history and region data from given database.
    Second, tranform the trajectories to a sequences of potential regions.
    Third, Tacke out the edges from sequences, and calculate their weight.
    Finally, calculate scores of each region by summarizing all linked ROIs multiplied by their weight and proportion 

Input
    The input are 2 database, trajectory and region. the type of database is postgresql.
    Trajectory is a database that contains sequences of points for each trajectory.
        format: tid, tid, index, lon ,lat
    Region is a database that contains region id, rang, and density, which means the number of trajectory that passes through this region
        format: rid, density, range

Output
    The output is the text file that contains ROIs and their score
        format:	rid, score
    
Language
    C++, php
    
File
    1_preprocess.php
        Transform geo trajectories to lists of potential regions
    2_filterTraDB.cpp
        Filter repeating Rid in each trajectory and trajectories that do not have regions
    3_linkR.cpp
        Generate in links and out links of each region
    4_importEdge.php
        Insert all edge to DB grid3x_edge
    5_weight.php
        Calculate weight of each edge
    6_scorePR_new.cpp
        Compute scores of each PR from links

How to run
    1.  compile 2_filterTraDB.cpp to 2_filterTraDB
        compile 3_linkR.cpp to 3_linkR
        compile 6_scorePR_new.cpp to 6_scorePR_new
    2.  sequentially excute 1_preprocess.php, 2_filterTraDB, 3_linkR, 4_importEdge.php, 5_weight.php, 6_scorePR_new

work's People

Contributors

tokuinico avatar

Watchers

James Cloos avatar  avatar

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.