Package cascading.pattern.model.generalregression.expression

Examples of cascading.pattern.model.generalregression.expression.ExpressionEvaluator.calculate()


  public void operate( FlowProcess flowProcess, FunctionCall<Context<BaseRegressionFunction.ExpressionContext>> functionCall )
    {
    ExpressionEvaluator evaluator = functionCall.getContext().payload.expressions[ 0 ];
    LinkFunction linkFunction = getSpec().linkFunction;

    double result = evaluator.calculate( functionCall.getArguments() );
    double linkResult = linkFunction.calculate( result );

    LOG.debug( "result: {}", linkResult );

    functionCall.getOutputCollector().add( functionCall.getContext().result( linkResult ) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.