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

📄 weight.java

📁 wekaUT是 university texas austin 开发的基于weka的半指导学习(semi supervised learning)的分类器
💻 JAVA
字号:
package weka.deduping.metrics;/** A simple wrapper data structure for storing a double weight * as an Object that can be put into lists, maps, etc. and then * incremented, decremented, and set. * * @author Ray Mooney */public class Weight {    /** A numerical weight value */    protected double value = 0;        /** Increment and return the new count */    public double increment() {	return ++value;    }    /** Increment by n and return the new count */    public double increment(int n) {	value = value + n;	return value;    }    /** Increment by n and return the new count */    public double increment(double n) {	value = value + n;	return value;    }    /** Decrement and return the new count */    public double decrement() {	return --value;    }    /** Decrement by n and return the new count */    public double decrement(int n) {	value = value - n;	return value;    }    /** Decrement by n and return the new count */    public double decrement(double n) {	value = value - n;	return value;    }    /** Get the current count */    public double getValue() {	return value;    }    /** Set the current count */    public double setValue(int value) {	this.value = value;	return value;    }    /** Set the current count */    public double setValue(double value) {	this.value = value;	return value;    }}

⌨️ 快捷键说明

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