Exemplo n.º 1
0
        //Regression.
        public double RegressEventSeries(DiscreteEventSeries <A> series)
        {
            //It's probably faster to convert the series to a multiset before scoring, particularly when many things are repeated.
            Multiset <Kmer <A> > seriesMultiset = series.ToMultisetKmer(k);

            return(regressor.RegressEventSeries(seriesMultiset));
        }
Exemplo n.º 2
0
        //Regression.
        public double RegressEventSeries(DiscreteEventSeries <A> series)
        {
            double score = 0;

            for (int k = 1; k <= maxK; k++)             //For locality!
            {
                Multiset <Kmer <A> > ms = series.ToMultisetKmer(k);
                score += regressor.RegressEventSeries(ms);
            }
            return(score);
        }