Examples of CEIL


Examples of co.nubetech.crux.server.functions.Ceil

  @Test
  public void testApplyFunctionsAggregateFirst() throws CruxException{
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    SumDoubleAggregator summer = new SumDoubleAggregator();
    xFnStack.push(summer);
    xFnStack.push(new Ceil());
    byte[] value = Bytes.toBytes(new Double(54.5d));
    FunctionUtil.applyAggregateFunctions(value, xFnStack);
    byte[] value1 = Bytes.toBytes(new Double(5.25d));
    FunctionUtil.applyAggregateFunctions(value1, xFnStack);
    assertEquals(59.75d, summer.getAggregate());
View Full Code Here

Examples of co.nubetech.crux.server.functions.Ceil

  @Test
  public void testApplyFunctionsNonAggregateFirst() throws CruxException{
    GroupingAggregationImpl impl = new GroupingAggregationImpl();
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    SumDoubleAggregator summer = new SumDoubleAggregator();
    xFnStack.push(new Ceil());
    xFnStack.push(summer);
    byte[] value = Bytes.toBytes(new Double(54.5d));
    FunctionUtil.applyAggregateFunctions(value, xFnStack);
    byte[] value1 = Bytes.toBytes(new Double(5.25d));
    FunctionUtil.applyAggregateFunctions(value1, xFnStack);
View Full Code Here

Examples of co.nubetech.crux.server.functions.Ceil

  @Test
  public void testGetSemiAggregatedResultNonAggregateFirst() throws CruxException{
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    SumDoubleAggregator summer = new SumDoubleAggregator();
    summer.aggregate(Bytes.toBytes(new Double(54.5d)));
    xFnStack.push(new Ceil());
    xFnStack.push(summer);
    assertEquals(54.5d, FunctionUtil.getSemiAggregatedResult(xFnStack));
  }
View Full Code Here

Examples of co.nubetech.crux.server.functions.Ceil

  public void testGetSemiAggResultAggregateFirst() throws CruxException{
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    SumDoubleAggregator summer = new SumDoubleAggregator();
    summer.aggregate(Bytes.toBytes(new Double(54.5d)));
    xFnStack.push(summer);
    xFnStack.push(new Ceil());
    assertEquals(54.5d, FunctionUtil.getSemiAggregatedResult(xFnStack));
  }
View Full Code Here

Examples of co.nubetech.crux.server.functions.Ceil

  @Test
  public void testGetSimpleFunctionResultWithAggFn() throws CruxException{
    //getSimpleFunctionResult
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    xFnStack.push(new SumDoubleAggregator());
    xFnStack.push(new Ceil());   
    System.out.println("Value is " + FunctionUtil.getSimpleFunctionResult(Bytes.toBytes(1234.5d),
        xFnStack));
    assertEquals(1235.0d, FunctionUtil.getSimpleFunctionResult(Bytes.toBytes(1234.5d),
        xFnStack));
  }
View Full Code Here

Examples of co.nubetech.crux.server.functions.Ceil

 
  @Test
  public void testGetSimpleFunctionResult() throws CruxException{
    //getSimpleFunctionResult
    Stack<CruxFunction> xFnStack = new Stack<CruxFunction>();
    xFnStack.push(new Ceil());
    System.out.println("Value is " + FunctionUtil.getSimpleFunctionResult(Bytes.toBytes(56.4d),
        xFnStack));
    assertEquals(57d, FunctionUtil.getSimpleFunctionResult( Bytes.toBytes(56.4d),
        xFnStack));
  }
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Ceil

    protected UnivariateFunction[] createFunctions() {
        return new UnivariateFunction[] {
            new Power(2.0), new Exp(), new Expm1(),
            new Log1p(), new Cosh(), new Sinh(), new Tanh(), new Cos(),
            new Sin(), new Tan(), new Acos(), new Asin(), new Atan(),
            new Abs(), new Sqrt(), new Cbrt(), new Ceil(),
            new Floor(), new Rint(), new Signum()
        };
    }
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Ceil

    protected UnivariateFunction[] createFunctions() {
        return new UnivariateFunction[] {
            new Power(2.0), new Exp(), new Expm1(),
            new Log1p(), new Cosh(), new Sinh(), new Tanh(), new Cos(),
            new Sin(), new Tan(), new Acos(), new Asin(), new Atan(),
            new Abs(), new Sqrt(), new Cbrt(), new Ceil(),
            new Floor(), new Rint(), new Signum()
        };
    }
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Ceil

    protected UnivariateFunction[] createFunctions() {
        return new UnivariateFunction[] {
            new Power(2.0), new Exp(), new Expm1(), new Log(), new Log10(),
            new Log1p(), new Cosh(), new Sinh(), new Tanh(), new Cos(),
            new Sin(), new Tan(), new Acos(), new Asin(), new Atan(),
            new Inverse(), new Abs(), new Sqrt(), new Cbrt(), new Ceil(),
            new Floor(), new Rint(), new Signum(), new Ulp()
        };
    }
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Ceil

    private UnivariateFunction[] createFunctions() {
        return new UnivariateFunction[] {
            new Power(2.0), new Exp(), new Expm1(), new Log(), new Log10(),
            new Log1p(), new Cosh(), new Sinh(), new Tanh(), new Cos(),
            new Sin(), new Tan(), new Acos(), new Asin(), new Atan(),
            new Inverse(), new Abs(), new Sqrt(), new Cbrt(), new Ceil(),
            new Floor(), new Rint(), new Signum(), new Ulp()
        };
    }
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.