⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractsimilarity.java

📁 本算法是实现基于KNN的基因遗传算法
💻 JAVA
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -