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); }
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); }
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); }
protected virtual bool IsBiggerWeightThanObs(double obs_weight, CandidateRecord other_record) { var other_weight = other_record.CanWeight; return((obs_weight <= other_weight) ? true : false); }
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); }