Example #1
0
 public virtual float getScore(Data feature)
 {
     ScoreCachingSenone.ScoreCache scoreCache = this.scoreCache;
     if (feature != ScoreCachingSenone.ScoreCache.access_000(scoreCache))
     {
         scoreCache      = new ScoreCachingSenone.ScoreCache(this, feature, this.calculateScore(feature));
         this.scoreCache = scoreCache;
         System.Threading.Thread.MemoryBarrier();
     }
     return(ScoreCachingSenone.ScoreCache.access_100(scoreCache));
 }
Example #2
0
 internal static float access_100(ScoreCachingSenone.ScoreCache scoreCache)
 {
     return(scoreCache.score);
 }
Example #3
0
 internal static Data access_000(ScoreCachingSenone.ScoreCache scoreCache)
 {
     return(scoreCache.feature);
 }