예제 #1
0
 public JobAttribute(string name, string id, AttributeLevel importance, AttributeImportance level, AttributeType type)
 {
     this.Name       = name;
     this.ElementID  = id;
     this.Importance = importance;
     this.Level      = level;
     this.Type       = type;
 }
예제 #2
0
 public double calculateSimilarity(AttributeLevel other)
 {
     if (NotRelevant || RecommendSuppress || other.RecommendSuppress || other.NotRelevant)
     {
         return(INVALID_DISTANCE);
     }
     else
     {
         double importanceDifference = Math.Abs(other.Value - Value);
         if (importanceDifference < IMPORTANCE_MATCH_THRESHOLD)
         {
             return(0);
         }
         else
         {
             return(importanceDifference);
         }
     }
 }