Skip to content

Instantly share code, notes, and snippets.

View little-bobby-tables's full-sized avatar

little-bobby-tables

View GitHub Profile
@little-bobby-tables
little-bobby-tables / automatic_fuzzy_color_naming.rs
Last active January 8, 2018 11:12
Based on Parametric fuzzy sets for automatic color naming
/* DOES NOT RETURN CORRECT RESULTS,
* current implementation violates the unity-sum constraint
* (sum of all memberships sometimes exceeds 1) and skips
* achromatic category memberships. */
extern crate nalgebra;
use nalgebra::{U1, U3, Matrix, MatrixArray};
use std::ops::{Mul, Div};