예제 #1
0
        public bool CheckPLSIsExist(PLSSubModel model, bool ispls1)
        {
            if (model == null)
            {
                return(false);
            }
            List <PLSSubModel> modellist;

            if (ispls1)
            {
                modellist = this.Pls1Models;
            }
            else
            {
                modellist = this.PlsANNModels;
            }
            return(modellist.Where(d => d.Comp.Name == model.Comp.Name).Count() > 0);
        }
예제 #2
0
        public bool AddPLS1(PLSSubModel model)
        {
            if (model == null)
            {
                return(false);
            }
            if (this.checkExist(this._pls1Path, model.FullPath))
            {
                return(false);
            }

            if (!this._comps.Contains(model.Comp))
            {
                return(false);
            }
            this._pls1.Add(model);
            this._pls1Path.Add(model.FullPath);
            this._trained = false;
            return(true);
        }