コード例 #1
0
ファイル: AATfix_OSM.cs プロジェクト: majitaki/OSM2019
        protected override bool IsEvsOpinionFormed(Agent agent, CandidateRecord select_record, CandidateRecord other_record, double obs_weight)
        {
            bool evs1 = this.IsChanged(agent) && this.IsBiggerWeight(select_record, other_record);
            bool evs2 = this.IsBiggerWeightThanObs(obs_weight, other_record);

            return(evs1 || evs2);
        }
コード例 #2
0
ファイル: AAT_OSM.cs プロジェクト: majitaki/OSM2019
        protected virtual bool IsBiggerWeight(CandidateRecord select_record, CandidateRecord other_record)
        {
            double other_canwei  = other_record.CanWeight;
            double select_canwei = select_record.CanWeight;

            return((other_canwei >= select_canwei) ? true : false);
        }
コード例 #3
0
ファイル: AAT_OSM.cs プロジェクト: majitaki/OSM2019
        protected virtual bool IsEvsOpinionFormed(Agent agent, CandidateRecord select_record, CandidateRecord other_record, double obs_u)
        {
            bool evs1 = this.IsDetermined(agent) && this.IsBiggerWeight(select_record, other_record);
            bool evs2 = this.IsSmallerU(other_record, agent, obs_u) && (other_record.CanWeight != select_record.CanWeight);

            return(evs1 || evs2);
        }
コード例 #4
0
ファイル: AATfix_OSM.cs プロジェクト: majitaki/OSM2019
        protected virtual bool IsBiggerWeightThanObs(double obs_weight, CandidateRecord other_record)
        {
            var other_weight = other_record.CanWeight;

            return((obs_weight <= other_weight) ? true : false);
        }
コード例 #5
0
ファイル: AAT_OSM.cs プロジェクト: majitaki/OSM2019
        protected virtual bool IsSmallerU(CandidateRecord other_record, Agent agent, double obs_u)
        {
            int req_u = other_record.RequireOpinionNum;

            return((obs_u >= req_u) ? true : false);
        }