package infosapient.hdg;
/*
* Copyright (c) 2001, Workplace Performance Tools, All Rights Reserved.
*
* LICENSE TO USE THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE 0.5
* ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
* RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
* The license may be viewed at:
* http://www.opensource.org/licenses/cpl.html
*/
import infosapient.system.FzySet;
import java.rmi.server.ObjID;
/**
* Class FzyHdgEXTREMELY narrows the membership of the set by raising all membership
* values to the 4.0 power. This means that only values close to the 100%Membership domain value
* will have memberships close to 1.0. EXTREMELY should be used as the synonym for INTENSIFY.
* @author: Michael McConnell
* @version $Revision: 1.1.1.1 $
*/
public class FzyHdgEXTREMELY extends FzyHedge {
static final long serialVersionUID = -1513365695117244137L;
public FzyHdgEXTREMELY() { myID = new ObjID(); }
public FzySet apply(FzySet aSet) {
VECMAX = aSet.getMemberArray().length;
m = new double[VECMAX];
double result[] = new double[VECMAX];
m = aSet.getMemberArray();
for (int inx = 0; inx < VECMAX; inx++ ) {
result[inx] = Math.pow(m[inx], 4.0d);
}
aSet.setMembershipArray(result);
return aSet;
}
public String getName() { return "extremely"; }
}