Utility Functions for Path Matching

accuracy_rate | Accuracy rate. |

bearing_change_fix_cpp | Fixing the bearing changes close to 360 or -360. |

brake_calc | brake stat calculation R version. |

colSds | Columnwise standard deviations. |

dist2d | Distance from a point to a line linked by two other points. |

dist2dCPP | Distance from a point to a line linked by two other points... |

GeneratePolygon | Generate polypon points for Ramer–Douglas–Peucker algorithm... |

LogLoss | Log loss score for competition. |

LogLoss_Analysis | Individual scores at each record. |

number_change | Total number of number changes in a numeric vector. |

prob_to_rank | Convert probablities to rank. |

prob_to_vote | Convert probablities to votes. |

RDP | Ramer–Douglas–Peucker algorithm. |

RDPCPP | Ramer–Douglas–Peucker algorithm C++ version. |

rowSds | Rowwise standard deviations. |

sign_change | Total number of sign changes in a logical vector. |

start_calc | start stat calculation R version. |

tele_data | subset of 100 trips of data from driver Alexander. |

trip_match_cpp | trip match algorithm that calculate matching distances. |

trip_match_v1 | trip matching algorithm R version 1. |

trip_match_v2 | trip matching algorithm R version 2. |

trip_match_v3 | trip matching algorithm R version 3. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.