afryca.ase.Snippet Library aggregation Aggregation var aggregation = (typeof exports === "undefined")?(function aggregation() {}):(exports); if(typeof global !== "undefined") { global.aggregation = aggregation; } aggregation.powerFunction = function powerFunction(valor1,valor2,beta) { var result=0; result=Math.pow(1+valor2,valor1*beta); return result; } aggregation.obtainWeightsGroups=function obtainWeightsGroups(hesitant,beta,pointA,pointB) { var weights=new ArrayList(); var cohesion,size,degreeSize; var func=[pointA,pointB,100,100]; var membershipFunctionSize= new TrapezoidalFunction(func); for(var i=0;i