Example #1
0
        public void Weight_SameTime_SameWeight()
        {
            var pcmc = new OutlierCoreMicroCluster <EuclideanPoint>(_fullCluster, _simFunc);
            var w1   = pcmc.Weight(_currentTime);
            var w2   = pcmc.Weight(_currentTime);

            Assert.That(w1, Is.EqualTo(w2));
        }
Example #2
0
        public void Weight_TimePassed_SmallerWeight()
        {
            var pcmc = new OutlierCoreMicroCluster <EuclideanPoint>(_fullCluster, _simFunc);
            var w1   = pcmc.Weight(_currentTime);

            _currentTime++;
            var w2 = pcmc.Weight(_currentTime);

            Assert.That(w1, Is.GreaterThan(w2));
        }