📄 testfactory.java
字号:
/* * 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.commons.math.stat.inference;import org.apache.commons.discovery.tools.DiscoverClass;/** * Abstract factory to create inference test instances. * * @since 1.1 * @version $Revision: 574050 $ $Date: 2007-09-09 11:54:08 -0700 (Sun, 09 Sep 2007) $ * @deprecated as of 1.2, pluggability of test instances is now provided through * constructors and setters. */public abstract class TestFactory { /** * Default constructor. */ protected TestFactory() { super(); } /** * Create an instance of a <code>TestFactory</code> * * @return a new factory. */ public static TestFactory newInstance() { TestFactory factory = null; try { DiscoverClass dc = new DiscoverClass(); factory = (TestFactory) dc.newInstance( TestFactory.class, "org.apache.commons.math.stat.inference.TestFactoryImpl"); } catch(Throwable t) { return new TestFactoryImpl(); } return factory; } /** * Create a TTest instance. * * @return a new TTest instance */ public abstract TTest createTTest(); /** * Create a ChiSquareTest instance. * * @return a new ChiSquareTest instance */ public abstract ChiSquareTest createChiSquareTest(); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -