Package infosapient.resolution

Source Code of infosapient.resolution.FzyCorrelationProduct

package infosapient.resolution;
/*
* 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;
/**
* @author: Michael McConnell
* @version $Revision: 1.1.1.1 $
*/
public class FzyCorrelationProduct extends FzyCorrelation {
  double memOfIPSet = 0;
  double[] membership;
  static final long serialVersionUID = 9022247679820693654L;
  public FzyCorrelationProduct() {myID = new ObjID();}
  public synchronized FzySet applyCorrelation(double m, FzySet correlatedSet){
  memOfIPSet = m;
     membership = correlatedSet.getMemberArray();
      int localVECMAX = correlatedSet.getVECMAX();
      for (int ix = 0; ix < localVECMAX; ix++)
        correlatedSet.setMembership((membership[ix] * memOfIPSet), ix);
      return correlatedSet;
  }
  public String getName() { return "product"; }
}
TOP

Related Classes of infosapient.resolution.FzyCorrelationProduct

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.