@Override
	public Double[] GetDiscreteFunction(Double[] x, Double[] paramsMF) {
		if (this.paramsMF.length == paramsMF.length)
			this.paramsMF = paramsMF;
			else
			return null;
		
		Double  a=this.paramsMF[0],
				b=this.paramsMF[1],
				c=this.paramsMF[2],
				d=this.paramsMF[3];
		
		int n=x.length;
		Double[] func = new Double[n];
		for (int i = 0; i < n; i++){
			if(x[i]<=a) 
				func[i] = new Double(0);
			else if(x[i]<=b)
				func[i]= (x[i]-a)/(b-a);
			else if(x[i]<=c)
				func[i]=new Double(1);
			else if(x[i]<=d)
				func[i]=(d-x[i])/(d-c);
			else if(d<=x[i])
				func[i]=new Double(0);
		};
		return func;
	}