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

📄 sample.cs

📁 It s the Naive Bayes algorithm with import function dat-files, realized by the tools of Visual Stu
💻 CS
字号:
using System;
using System.Collections;
using System.Text;

namespace NaiveBayes
{
    class Sample
    {
        private ArrayList values = new ArrayList();
        private object targetValue;

        public Sample(ArrayList values, int index)
        {
            for (int i = 0; i < values.Count; i++)
            {
                if (i != index)
                    this.values.Add(values[i]);
                else
                    this.targetValue = values[i];
            }
        }

        public ArrayList getValues()
        {
            return this.values;
        }
        public object getTargetValue()
        {
            return this.targetValue;
        }
    }
}

⌨️ 快捷键说明

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