Package cascading.pattern.model.generalregression.expression

Examples of cascading.pattern.model.generalregression.expression.ExpressionEvaluator


    }

  @Override
  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


    }

  ExpressionEvaluator bind( Fields argumentFields )
    {
    if( isNoOp() )
      return new ExpressionEvaluator( targetCategory );

    ParameterExpression[] expressions = new ParameterExpression[ parameters.size() ];

    int count = 0;

    for( Parameter parameter : parameters.values() )
      expressions[ count++ ] = parameter.createExpression( argumentFields );

    return new ExpressionEvaluator( targetCategory, expressions );
    }
View Full Code Here

TOP

Related Classes of cascading.pattern.model.generalregression.expression.ExpressionEvaluator

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.