Package infosapient.hdg

Source Code of infosapient.hdg.FzyHdgVERY

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 FzyHdgVERY squares each membership value -- effect is to shrink the region around M = 1.0.
* @author: Michael McConnell
* @version $Revision: 1.1.1.1 $
*/
public class FzyHdgVERY extends FzyHedge {
  static final long serialVersionUID = 4614149554153891672L;
  public FzyHdgVERY() {myID = new ObjID();}
  public FzySet apply(FzySet aSet) {
    double[] m = aSet.getMemberArray();
  double[] results = new double[m.length];
    for (int inx = 0; inx < VECMAX; inx ++)
      results[inx] = Math.pow(m[inx], 3.0d);
    aSet.setMembershipArray(results);
    return aSet;
  }
  public String getName() { return "very"; }
}
TOP

Related Classes of infosapient.hdg.FzyHdgVERY

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.