blob: 3826db0aaddad5e217387b79021836d5c78fd4e6 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sysds.test.applications;
import org.junit.Test;
import org.apache.sysds.common.Types.ExecMode;
/**
* Tests of univariate statistics built-in functions.
* <p>Does NOT test optional weight parameters to these functions
* <p>Tests functions on DENSE data
*/
public class UnivariateUnweightedScaleDenseTest extends UnivariateStatsBase
{
public UnivariateUnweightedScaleDenseTest() {
super();
TEST_CLASS_DIR = TEST_DIR + UnivariateUnweightedScaleDenseTest.class.getSimpleName() + "/";
}
// -------------------------------------------------------------------------------------
// Tests 1-12 moved to UnivariateUnweightedScaleSparseTest.java
// -------------------------------------------------------------------------------------
@Test
public void testScale13() {
testScaleWithR(SIZE.DIV4, RANGE.NEG, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale14() {
testScaleWithR(SIZE.DIV4P1, RANGE.NEG, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale15() {
testScaleWithR(SIZE.DIV4P3, RANGE.NEG, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale16() {
testScaleWithR(SIZE.DIV4P3, RANGE.NEG, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale17() {
testScaleWithR(SIZE.DIV4, RANGE.MIXED, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale18() {
testScaleWithR(SIZE.DIV4P1, RANGE.MIXED, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale19() {
testScaleWithR(SIZE.DIV4P3, RANGE.MIXED, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale20() {
testScaleWithR(SIZE.DIV4P3, RANGE.MIXED, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale21() {
testScaleWithR(SIZE.DIV4, RANGE.POS, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale22() {
testScaleWithR(SIZE.DIV4P1, RANGE.POS, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale23() {
testScaleWithR(SIZE.DIV4P3, RANGE.POS, SPARSITY.DENSE, ExecMode.HYBRID);
}
@Test
public void testScale24() {
testScaleWithR(SIZE.DIV4P3, RANGE.POS, SPARSITY.DENSE, ExecMode.HYBRID);
}
}