Skip to content

mkessy/ebike-compare-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

E-bike Comparison Tool

A small React App that uses a static KD-Tree to do a K-nearest neighbors search on scraped e-bike data.

KD-trees are useful for performing nearest neighbors searches on data of n-dimensions. In this case we first need a set of scalar points to represent the comparison fields. For an e-bike this is: price, motor power, category, engine position, range, and weight. The data set used in this app represents almost 13,000 different bikes with manufacture dates between 2012 and 2021. Each point represents a bike scraped from here, the self-purported "largest e-bike database in the world."

Once the tree is built you can query it for similar bikes (nearest neighbors) by either providing a data point for an existing bike or a 'synthetic' bike with user-defined fields. Look ups are extremely fast which makes it an appropriate data structure for an interactive comparison tool where it would be undesirable to experience latency with each comparison. Time and space complexity for look-ups are on the order of O(n).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published