abstractsimilarity.java

来自「本算法是实现基于KNN的基因遗传算法」· Java 代码 · 共 35 行

JAVA
35
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package gaknn.similarity;import gaknn.core.FastVector;/** * * @author Niro */public abstract class AbstractSimilarity {    public FastVector m_Attributes;    static double[] m_Weights;        public AbstractSimilarity(FastVector attributes){        m_Attributes = attributes;    }            public void SetAttribute(FastVector attributes){        m_Attributes = attributes;    }        public void SetWeights(double[] weights){        m_Weights = weights;    }        public abstract double GetSimilarity(double[] attrbuteSet1, double[] attrbuteSet2); }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?