コード例 #1
0
        public override long[] getUserNeighborhood(long userID)
        {
            DataModel model = this.getDataModel();

            TopItems.Estimator <long> estimator  = new Estimator(this.getUserSimilarity(), userID, this.minSimilarity);
            IEnumerator <long>        allUserIDs = SamplingLongPrimitiveIterator.maybeWrapIterator(model.getUserIDs(), this.getSamplingRate());

            return(TopItems.getTopUsers(this.n, allUserIDs, null, estimator));
        }