Package org.grouplens.lenskit.symbols

Examples of org.grouplens.lenskit.symbols.DoubleSymbolValue


     * @return This builder (for chaining)
     * @see #addChannel(TypedSymbol, Object)
     */
    public ScoredIdBuilder addChannel(Symbol symbol, double value) {
        Preconditions.checkNotNull(symbol, "symbol cannot be null");
        DoubleSymbolValue sv = SymbolValue.of(symbol, value);
        Iterators.removeIf(channels.iterator(),
                           SymbolValue.hasSymbol(sv.getSymbol()));
        channels.add(sv);
        return this;
    }
View Full Code Here

TOP

Related Classes of org.grouplens.lenskit.symbols.DoubleSymbolValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.