Switch branches/tags
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
build
images
README.md
geometry.js
gulpfile.js
index.html
main.js
package.json
yarn.lock

README.md

The Inner Product as a Decision Rule

Associated blog post

hyperplane

(Click the image above or this link for a demo)

Setup for running on a local machine

Intall prerequisites

npm install   # or yarn install
npm install -g gulp
gulp watch    # demo live updates when code changes

Then open index.html in a web browser and drag around the arrowheads.

open index.html

Files

geometry.js contains the main geometric primitives that are unrelated to rendering. The coordinate system for these classes is standard Cartesian (0,0)-in-the-center coordinates.

main.js instantiates the geometry objects, renders them with d3, and sets up the relevant behaviors.