1 /* modifier functions for fuzzy sets */
3 function Dilation(mu) { return PoweredHedge(mu, 0.5); }
6 function Concentration(mu) { return PoweredHedge(mu, 2); }
7 var Con = Concentration;
9 function PoweredHedge(mu, exponent){ return Math.pow(mu, exponent); }
11 function ContrastIntensification(mu){
12 if(mu < 0.5) return 2*Math.pow(mu, 2);
13 return 1-2*Math.pow((1-mu), 2);
15 var Int = ContrastIntensification;