Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (batchNonMaxSuppression_ != null)
            {
                hash ^= BatchNonMaxSuppression.GetHashCode();
            }
            if (ScoreConverter != 0)
            {
                hash ^= ScoreConverter.GetHashCode();
            }
            if (LogitScale != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LogitScale);
            }
            if (calibrationConfig_ != null)
            {
                hash ^= CalibrationConfig.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
     public void modifyScore(string convertTo){
       
       if(convertTo.Equals("decimal"){    
            scoreConverter = new DecimalScoreConverter();
       }
       else{
            scoreConverter = new IntegerScoreConverter();
       }
       scoreConverter.determineScore();
 }