Esempio n. 1
0
        public void UpdateRouteTable()
        {
            var componentFeature = new ComponentFeature();

            PartManager.PopulateFeature(componentFeature);

            var types = componentFeature.Components;

            Routes = RouteTable.Create(types);
        }
Esempio n. 2
0
        private Rank <PhotoMetadata, double> MakeComponentRank(Tuple <PhotoMetadata, double[]>[] dbFeatures, ComponentFeature componentFeatures)
        {
            var rank = Rank.FromMetric(dbFeatures, componentFeatures.Features, (f1, f2) => ComputeBlockSimilarity(f1, f2, componentFeatures.Blocks, COMPONENT_METRIC));

            return(rank.NormalizeScore(ScoreNormalization.Tanh));
        }