Permalink
Browse files

Tagging 1.2-RC2

  • Loading branch information...
1 parent 7b7f938 commit 9998f1544f391db017f919b8f61e24cd1242a061 @psteitz psteitz committed Feb 17, 2008
Showing with 34 additions and 21,904 deletions.
  1. +13 −5 RELEASE-NOTES.txt
  2. +1 −1 pom.xml
  3. +3 −3 project.xml
  4. +12 −4 release-notes.jsl
  5. +0 −34 src/experimental/org/apache/commons/math/analysis/DerivativeOperatorFactory.java
  6. +0 −46 src/experimental/org/apache/commons/math/analysis/DerivativeOperatorFactoryTest.java
  7. +0 −33 src/experimental/org/apache/commons/math/analysis/FunctionOperator.java
  8. +0 −51 src/experimental/org/apache/commons/math/analysis/UnivariateRealFunctionProxy.java
  9. +0 −48 src/experimental/org/apache/commons/math/analysis/UnivariateRealFunctionUtils.java
  10. +0 −65 src/experimental/org/apache/commons/math/analysis/UnivariateRealFunctionUtilsTest.java
  11. +0 −46 src/experimental/org/apache/commons/math/analysis/derivative/AbstractDifferenceDerivative.java
  12. +0 −51 src/experimental/org/apache/commons/math/analysis/derivative/BackwardDifferenceDerivative.java
  13. +0 −52 src/experimental/org/apache/commons/math/analysis/derivative/CenterDifferenceDerivative.java
  14. +0 −51 src/experimental/org/apache/commons/math/analysis/derivative/ForwardDifferenceDerivative.java
  15. +0 −30 src/experimental/org/apache/commons/math/function/Compilable.java
  16. +0 −220 src/experimental/org/apache/commons/math/function/DefaultContext.java
  17. +0 −30 src/experimental/org/apache/commons/math/function/Evaluation.java
  18. +0 −51 src/experimental/org/apache/commons/math/function/EvaluationContext.java
  19. +0 −62 src/experimental/org/apache/commons/math/function/EvaluationException.java
  20. +0 −37 src/experimental/org/apache/commons/math/function/Variable.java
  21. +0 −55 src/experimental/org/apache/commons/math/function/simple/Add.java
  22. +0 −54 src/experimental/org/apache/commons/math/function/simple/Divide.java
  23. +0 −52 src/experimental/org/apache/commons/math/function/simple/Equals.java
  24. +0 −52 src/experimental/org/apache/commons/math/function/simple/Multiply.java
  25. +0 −56 src/experimental/org/apache/commons/math/function/simple/Power.java
  26. +0 −51 src/experimental/org/apache/commons/math/function/simple/Sqrt.java
  27. +0 −52 src/experimental/org/apache/commons/math/function/simple/Subtract.java
  28. +0 −220 src/experimental/org/apache/commons/math/linear/CholeskySolver.java
  29. +0 −292 src/experimental/org/apache/commons/math/linear/CholeskySolverTest.java
  30. +0 −29 src/experimental/org/apache/commons/math/linear/Decomposer.java
  31. +0 −37 src/experimental/org/apache/commons/math/linear/Decomposition.java
  32. +0 −44 src/experimental/org/apache/commons/math/linear/DecompositionFactory.java
  33. +0 −23 src/experimental/org/apache/commons/math/linear/RealVector.java
  34. +0 −149 src/experimental/org/apache/commons/math/stat/univariate/BeanListUnivariateImpl.java
  35. +0 −228 src/experimental/org/apache/commons/math/stat/univariate/BeanListUnivariateImplTest.java
  36. +0 −93 src/experimental/org/apache/commons/math/util/BeanTransformer.java
  37. +0 −94 src/experimental/org/apache/commons/math/util/BeanTransformerTest.java
  38. +1 −1 src/java/org/apache/commons/math/random/JDKRandomGenerator.java
  39. +1 −1 src/java/org/apache/commons/math/random/RandomAdaptor.java
  40. +1 −1 src/java/org/apache/commons/math/random/RandomGenerator.java
  41. +0 −202 src/mantissa/LICENSE-2.0.txt
  42. +0 −9 src/mantissa/NOTICE.txt
  43. +0 −119 src/mantissa/src/org/spaceroots/mantissa/MantissaException.java
  44. +0 −113 src/mantissa/src/org/spaceroots/mantissa/MessagesResources.java
  45. +0 −112 src/mantissa/src/org/spaceroots/mantissa/MessagesResources_fr.java
  46. +0 −70 src/mantissa/src/org/spaceroots/mantissa/algebra/Chebyshev.java
  47. +0 −157 src/mantissa/src/org/spaceroots/mantissa/algebra/CoefficientsGenerator.java
  48. +0 −69 src/mantissa/src/org/spaceroots/mantissa/algebra/Hermite.java
  49. +0 −70 src/mantissa/src/org/spaceroots/mantissa/algebra/Laguerre.java
  50. +0 −71 src/mantissa/src/org/spaceroots/mantissa/algebra/Legendre.java
  51. +0 −49 src/mantissa/src/org/spaceroots/mantissa/algebra/OrthogonalPolynomial.java
  52. +0 −1,014 src/mantissa/src/org/spaceroots/mantissa/algebra/Polynomial.java
  53. +0 −346 src/mantissa/src/org/spaceroots/mantissa/algebra/PolynomialFraction.java
  54. +0 −373 src/mantissa/src/org/spaceroots/mantissa/algebra/RationalNumber.java
  55. +0 −222 src/mantissa/src/org/spaceroots/mantissa/fitting/AbstractCurveFitter.java
  56. +0 −75 src/mantissa/src/org/spaceroots/mantissa/fitting/F2FP2Iterator.java
  57. +0 −100 src/mantissa/src/org/spaceroots/mantissa/fitting/FFPIterator.java
  58. +0 −269 src/mantissa/src/org/spaceroots/mantissa/fitting/HarmonicCoefficientsGuesser.java
  59. +0 −227 src/mantissa/src/org/spaceroots/mantissa/fitting/HarmonicFitter.java
  60. +0 −44 src/mantissa/src/org/spaceroots/mantissa/fitting/PolynomialCoefficient.java
  61. +0 −179 src/mantissa/src/org/spaceroots/mantissa/fitting/PolynomialFitter.java
  62. BIN ...antissa/src/org/spaceroots/mantissa/fitting/doc-files/org_spaceroots_mantissa_fitting_classes.png
  63. +0 −26 src/mantissa/src/org/spaceroots/mantissa/fitting/package.html
  64. +0 −42 src/mantissa/src/org/spaceroots/mantissa/functions/ExhaustedSampleException.java
  65. +0 −59 src/mantissa/src/org/spaceroots/mantissa/functions/FunctionException.java
  66. +0 −73 src/mantissa/src/org/spaceroots/mantissa/functions/scalar/BasicSampledFunctionIterator.java
  67. +0 −57 src/mantissa/src/org/spaceroots/mantissa/functions/scalar/ComputableFunction.java
  68. +0 −146 src/mantissa/src/org/spaceroots/mantissa/functions/scalar/ComputableFunctionSampler.java
  69. +0 −68 src/mantissa/src/org/spaceroots/mantissa/functions/scalar/SampledFunction.java
  70. +0 −47 src/mantissa/src/org/spaceroots/mantissa/functions/scalar/SampledFunctionIterator.java
  71. +0 −97 src/mantissa/src/org/spaceroots/mantissa/functions/scalar/ScalarValuedPair.java
  72. +0 −78 src/mantissa/src/org/spaceroots/mantissa/functions/vectorial/BasicSampledFunctionIterator.java
  73. +0 −61 src/mantissa/src/org/spaceroots/mantissa/functions/vectorial/ComputableFunction.java
  74. +0 −150 src/mantissa/src/org/spaceroots/mantissa/functions/vectorial/ComputableFunctionSampler.java
  75. +0 −73 src/mantissa/src/org/spaceroots/mantissa/functions/vectorial/SampledFunction.java
  76. +0 −52 src/mantissa/src/org/spaceroots/mantissa/functions/vectorial/SampledFunctionIterator.java
  77. +0 −58 src/mantissa/src/org/spaceroots/mantissa/functions/vectorial/VectorialValuedPair.java
  78. +0 −139 src/mantissa/src/org/spaceroots/mantissa/linalg/DiagonalMatrix.java
  79. +0 −119 src/mantissa/src/org/spaceroots/mantissa/linalg/GeneralMatrix.java
  80. +0 −276 src/mantissa/src/org/spaceroots/mantissa/linalg/GeneralSquareMatrix.java
  81. +0 −216 src/mantissa/src/org/spaceroots/mantissa/linalg/LowerTriangularMatrix.java
  82. +0 −484 src/mantissa/src/org/spaceroots/mantissa/linalg/Matrix.java
  83. +0 −86 src/mantissa/src/org/spaceroots/mantissa/linalg/MatrixFactory.java
  84. +0 −103 src/mantissa/src/org/spaceroots/mantissa/linalg/NonNullRange.java
  85. +0 −41 src/mantissa/src/org/spaceroots/mantissa/linalg/SingularMatrixException.java
  86. +0 −99 src/mantissa/src/org/spaceroots/mantissa/linalg/SquareMatrix.java
  87. +0 −223 src/mantissa/src/org/spaceroots/mantissa/linalg/SymetricalMatrix.java
  88. +0 −216 src/mantissa/src/org/spaceroots/mantissa/linalg/UpperTriangularMatrix.java
  89. +0 −68 src/mantissa/src/org/spaceroots/mantissa/linalg/design/linalg.argo
  90. +0 −2,252 src/mantissa/src/org/spaceroots/mantissa/linalg/design/linalg.xmi
  91. +0 −1,046 src/mantissa/src/org/spaceroots/mantissa/linalg/design/linalg_classdiagram1.pgml
  92. BIN src/mantissa/src/org/spaceroots/mantissa/linalg/doc-files/org_spaceroots_mantissa_linalg_classes.png
  93. +0 −21 src/mantissa/src/org/spaceroots/mantissa/linalg/package.html
  94. +0 −49 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/ComputableFunctionIntegrator.java
  95. +0 −57 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/EnhancedSimpsonIntegrator.java
  96. +0 −100 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/EnhancedSimpsonIntegratorSampler.java
  97. +0 −151 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/GaussLegendreIntegrator.java
  98. +0 −62 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/RiemannIntegrator.java
  99. +0 −87 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/RiemannIntegratorSampler.java
  100. +0 −48 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/SampledFunctionIntegrator.java
  101. +0 −53 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/TrapezoidIntegrator.java
  102. +0 −89 src/mantissa/src/org/spaceroots/mantissa/quadrature/scalar/TrapezoidIntegratorSampler.java
  103. +0 −49 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/ComputableFunctionIntegrator.java
  104. +0 −57 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/EnhancedSimpsonIntegrator.java
  105. +0 −117 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/EnhancedSimpsonIntegratorSampler.java
  106. +0 −162 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/GaussLegendreIntegrator.java
  107. +0 −63 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/RiemannIntegrator.java
  108. +0 −99 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/RiemannIntegratorSampler.java
  109. +0 −49 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/SampledFunctionIntegrator.java
  110. +0 −54 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/TrapezoidIntegrator.java
  111. +0 −101 src/mantissa/src/org/spaceroots/mantissa/quadrature/vectorial/TrapezoidIntegratorSampler.java
  112. +0 −161 src/mantissa/src/org/spaceroots/mantissa/random/ScalarSampleStatistics.java
  113. +0 −285 src/mantissa/src/org/spaceroots/mantissa/random/VectorialSampleStatistics.java
  114. BIN src/mantissa/src/org/spaceroots/mantissa/random/doc-files/org_spaceroots_mantissa_random_classes.png
  115. +0 −33 src/mantissa/src/org/spaceroots/mantissa/random/package.html
  116. +0 −188 src/mantissa/src/org/spaceroots/mantissa/roots/BrentSolver.java
  117. +0 −57 src/mantissa/src/org/spaceroots/mantissa/roots/ConvergenceChecker.java
  118. +0 −54 src/mantissa/src/org/spaceroots/mantissa/roots/RootsFinder.java
  119. +0 −141 src/mantissa/src/org/spaceroots/mantissa/utilities/ArrayMapper.java
  120. +0 −46 src/mantissa/src/org/spaceroots/mantissa/utilities/ArrayMapperEntry.java
  121. +0 −81 src/mantissa/src/org/spaceroots/mantissa/utilities/ArraySliceMappable.java
  122. +0 −166 src/mantissa/src/org/spaceroots/mantissa/utilities/Interval.java
  123. +0 −362 src/mantissa/src/org/spaceroots/mantissa/utilities/IntervalsList.java
  124. +0 −85 src/mantissa/src/org/spaceroots/mantissa/utilities/MappableArray.java
  125. +0 −88 src/mantissa/src/org/spaceroots/mantissa/utilities/MappableScalar.java
  126. +0 −41 src/mantissa/tests-src/org/spaceroots/mantissa/AllTests.java
  127. +0 −40 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/AllTests.java
  128. +0 −85 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/ChebyshevTest.java
  129. +0 −76 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/HermiteTest.java
  130. +0 −82 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/LaguerreTest.java
  131. +0 −101 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/LegendreTest.java
  132. +0 −131 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/PolynomialDoubleTest.java
  133. +0 −195 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/PolynomialFractionTest.java
  134. +0 −146 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/PolynomialRationalTest.java
  135. +0 −186 src/mantissa/tests-src/org/spaceroots/mantissa/algebra/RationalNumberTest.java
  136. +0 −108 src/mantissa/tests-src/org/spaceroots/mantissa/fitting/AbstractCurveFitterTest.java
  137. +0 −35 src/mantissa/tests-src/org/spaceroots/mantissa/fitting/AllTests.java
  138. +0 −175 src/mantissa/tests-src/org/spaceroots/mantissa/fitting/HarmonicFitterTest.java
  139. +0 −164 src/mantissa/tests-src/org/spaceroots/mantissa/fitting/PolynomialFitterTest.java
  140. +0 −34 src/mantissa/tests-src/org/spaceroots/mantissa/functions/AllTests.java
  141. +0 −35 src/mantissa/tests-src/org/spaceroots/mantissa/functions/scalar/AllTests.java
  142. +0 −149 ...mantissa/tests-src/org/spaceroots/mantissa/functions/scalar/BasicSampledFunctionIteratorTest.java
  143. +0 −196 src/mantissa/tests-src/org/spaceroots/mantissa/functions/scalar/ComputableFunctionSamplerTest.java
  144. +0 −51 src/mantissa/tests-src/org/spaceroots/mantissa/functions/scalar/ScalarValuedPairTest.java
  145. +0 −35 src/mantissa/tests-src/org/spaceroots/mantissa/functions/vectorial/AllTests.java
  146. +0 −162 ...tissa/tests-src/org/spaceroots/mantissa/functions/vectorial/BasicSampledFunctionIteratorTest.java
  147. +0 −229 ...mantissa/tests-src/org/spaceroots/mantissa/functions/vectorial/ComputableFunctionSamplerTest.java
  148. +0 −58 src/mantissa/tests-src/org/spaceroots/mantissa/functions/vectorial/VectorialValuedPairTest.java
  149. +0 −40 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/AllTests.java
  150. +0 −190 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/DiagonalMatrixTest.java
  151. +0 −286 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/GeneralMatrixTest.java
  152. +0 −366 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/GeneralSquareMatrixTest.java
  153. +0 −225 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/LowerTriangularMatrixTest.java
  154. +0 −71 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/MatrixFactoryTest.java
  155. +0 −62 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/NonNullRangeTest.java
  156. +0 −272 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/SymetricalMatrixTest.java
  157. +0 −225 src/mantissa/tests-src/org/spaceroots/mantissa/linalg/UpperTriangularMatrixTest.java
  158. +0 −32 src/mantissa/tests-src/org/spaceroots/mantissa/quadrature/AllTests.java
  159. +0 −33 src/mantissa/tests-src/org/spaceroots/mantissa/quadrature/scalar/AllTests.java
  160. +0 −102 src/mantissa/tests-src/org/spaceroots/mantissa/quadrature/scalar/GaussLegendreIntegratorTest.java
  161. +0 −33 src/mantissa/tests-src/org/spaceroots/mantissa/quadrature/vectorial/AllTests.java
  162. +0 −124 src/mantissa/tests-src/org/spaceroots/mantissa/quadrature/vectorial/GaussLegendreIntegratorTest.java
  163. +0 −37 src/mantissa/tests-src/org/spaceroots/mantissa/random/AllTests.java
  164. +0 −103 src/mantissa/tests-src/org/spaceroots/mantissa/random/ScalarSampleStatisticsTest.java
  165. +0 −33 src/mantissa/tests-src/org/spaceroots/mantissa/roots/AllTests.java
  166. +0 −71 src/mantissa/tests-src/org/spaceroots/mantissa/roots/BrentSolverTest.java
  167. +0 −433 src/mantissa/tests-src/org/spaceroots/mantissa/roots/TestProblem.java
  168. +0 −37 src/mantissa/tests-src/org/spaceroots/mantissa/utilities/AllTests.java
  169. +0 −149 src/mantissa/tests-src/org/spaceroots/mantissa/utilities/ArrayMapperTest.java
  170. +0 −88 src/mantissa/tests-src/org/spaceroots/mantissa/utilities/IntervalTest.java
  171. +0 −120 src/mantissa/tests-src/org/spaceroots/mantissa/utilities/IntervalsListTest.java
  172. +0 −92 src/mantissa/tests-src/org/spaceroots/mantissa/utilities/MappableArrayTest.java
  173. +0 −100 src/mantissa/tests-src/org/spaceroots/mantissa/utilities/MappableScalarTest.java
  174. +1 −1 src/site/xdoc/changes.xml
  175. +1 −1 src/site/xdoc/xdoc.xsl
View
@@ -1,5 +1,5 @@
- Apache Commons Math Version 1.2-RC1
+ Apache Commons Math Version 1.2-RC2
RELEASE NOTES
@@ -146,8 +146,16 @@ DEPRECATIONS SUMMARY
* Most methods from the ComplexUtils class have been deprecated, with
implementations moved to the Complex class.
-See "clirr-report.html" included in the binary distribution for a detailed list
-of API changes. The "errors" reported at the top of the report are due to
-protected fields being moved to superclasses. These fields are still available,
-so there is no backward compatibility issue.
+See "clirr-report.html" included in the docs directory of the binary
+distribution for a detailed list of API changes. The "errors" reported at the
+top of the report are due to protected fields being moved to superclasses.
+These fields are still available, so there is no backward compatibility issue.
+
+BUILDING COMMONS MATH
+
+Commons math can be built from the source distribution using Maven 1, Maven 2,
+or Ant, launching any one of these from the top-level directory of the unpacked
+zip or tarball. For detailed build instructions and information about how to
+contribute to Commons Math, see "developers.html" in the docs directory of the
+binary distribution.
View
@@ -27,7 +27,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>commons-math</groupId>
<artifactId>commons-math</artifactId>
- <version>1.2-RC1</version>
+ <version>1.2-RC2</version>
<name>Commons Math</name>
<inceptionYear>2003</inceptionYear>
View
@@ -23,7 +23,7 @@
<name>Math</name>
<groupId>commons-math</groupId>
<artifactId>commons-math</artifactId>
- <currentVersion>1.2-RC1</currentVersion>
+ <currentVersion>1.2-RC2</currentVersion>
<inceptionYear>2003</inceptionYear>
<shortDescription>Commons Math</shortDescription>
<description>The Math project is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language or commons-lang.</description>
@@ -107,9 +107,9 @@
<tag>MATH_1_1</tag>
</version>
<version>
- <id>1.2-RC1</id>
+ <id>1.2-RC2</id>
<name>1.2</name>
- <tag>MATH_1_2_RC1</tag>
+ <tag>MATH_1_2_RC2</tag>
</version>
</versions>
<developers>
View
@@ -121,10 +121,18 @@ DEPRECATIONS SUMMARY
* Most methods from the ComplexUtils class have been deprecated, with
implementations moved to the Complex class.
-See "clirr-report.html" included in the binary distribution for a detailed list
-of API changes. The "errors" reported at the top of the report are due to
-protected fields being moved to superclasses. These fields are still available,
-so there is no backward compatibility issue.
+See "clirr-report.html" included in the docs directory of the binary
+distribution for a detailed list of API changes. The "errors" reported at the
+top of the report are due to protected fields being moved to superclasses.
+These fields are still available, so there is no backward compatibility issue.
+
+BUILDING COMMONS MATH
+
+Commons math can be built from the source distribution using Maven 1, Maven 2,
+or Ant, launching any one of these from the top-level directory of the unpacked
+zip or tarball. For detailed build instructions and information about how to
+contribute to Commons Math, see "developers.html" in the docs directory of the
+binary distribution.
</j:whitespace>
</j:if>
@@ -1,34 +0,0 @@
-/*
- * 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.analysis;
-
-public class DerivativeOperatorFactory {
-
- public static DerivativeOperatorFactory newInstance() {
- return null;
- }
-
- public FunctionOperator getDefaultDerivativeOperator() {
- return null;
- }
-
- public FunctionOperator getCenteredDifferenceDerivativeOperator(){
- return null;
- }
-
- // and so on for other implementations of numerical deriv's
-}
@@ -1,46 +0,0 @@
-/*
- * 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.analysis;
-
-import junit.framework.TestCase;
-
-/**
-
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class DerivativeOperatorFactoryTest extends TestCase {
-
- /**
- * Constructor for DerivativeOperatorFactoryTest.
- * @param arg0
- */
- public DerivativeOperatorFactoryTest(String arg0) {
- super(arg0);
- }
-
- //UnivariateRealFunction f = new SomeUserDefinedFunction();
- //FunctionOperator derivative =
- // DerivativeOperatorFactory.newInstance().getDefaultDerivativeOperator();
-
- //UnivariateRealFunction g = derivative.evaluate( f );
-
- // to obtain the value of f'(0.0) use
- //double fprime_at_0 = g.value( 0.0 );
-
-}
@@ -1,33 +0,0 @@
-/*
- * 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.analysis;
-
-import org.apache.commons.math.MathException;
-
-public interface FunctionOperator {
-
-
- /**
- * Evaluate the Function Operator for a given real single variable function.
- *
- * @param f the function which should be evaluated
- * @return the resultant function
- * @throws MathException if the function couldn't be evaluated
- */
- public UnivariateRealFunction evaluate(UnivariateRealFunction f) throws MathException;
-
-}
@@ -1,51 +0,0 @@
-/*
- * 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.analysis;
-
-/**
- * @todo add javadoc comment
- * @version $Revision$ $Date$
- */
-public abstract class UnivariateRealFunctionProxy
- implements UnivariateRealFunction {
-
- private UnivariateRealFunction function;
-
- /**
- * @todo add javadoc comment
- */
- public UnivariateRealFunctionProxy(UnivariateRealFunction function) {
- super();
- setFunction(function);
- }
-
- /**
- * @todo add javadoc comment
- */
- protected UnivariateRealFunction getFunction() {
- return function;
- }
-
- /**
- * @todo add javadoc comment
- */
- private void setFunction(UnivariateRealFunction function) {
- this.function = function;
- }
-
-}
@@ -1,48 +0,0 @@
-/*
- * 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.analysis;
-
-import org.apache.commons.math.analysis.derivative.BackwardDifferenceDerivative;
-import org.apache.commons.math.analysis.derivative.CenterDifferenceDerivative;
-import org.apache.commons.math.analysis.derivative.ForwardDifferenceDerivative;
-
-/**
- * @todo add javadoc comment
- * @version $Revision$ $Date$
- */
-public class UnivariateRealFunctionUtils {
-
- /**
- * @todo add javadoc comment
- */
- private UnivariateRealFunctionUtils() {
- super();
- }
-
- public static UnivariateRealFunction backwardDifferenceDerivative(UnivariateRealFunction function, double delta) {
- return BackwardDifferenceDerivative.decorate(function, delta);
- }
-
- public static UnivariateRealFunction centerDifferenceDerivative(UnivariateRealFunction function, double delta) {
- return CenterDifferenceDerivative.decorate(function, delta);
- }
-
- public static UnivariateRealFunction forwardDifferenceDerivative(UnivariateRealFunction function, double delta) {
- return ForwardDifferenceDerivative.decorate(function, delta);
- }
-}
@@ -1,65 +0,0 @@
-/*
- * 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.analysis;
-
-import junit.framework.TestCase;
-
-/**
- * @todo add javadoc comment
- * @version $Revision$ $Date$
- */
-public class UnivariateRealFunctionUtilsTest extends TestCase {
- /**
- *
- */
- public void testLocalMaximumCentered() {
- UnivariateRealFunction function = new SinFunction();
- UnivariateRealFunction derivative = UnivariateRealFunctionUtils.centerDifferenceDerivative(function, 1.0e-5);
- testLocalMaximum(derivative);
- }
-
- /**
- *
- */
- public void testLocalMaximumForward() {
- UnivariateRealFunction function = new SinFunction();
- UnivariateRealFunction derivative = UnivariateRealFunctionUtils.forwardDifferenceDerivative(function, 1.0e-5);
- testLocalMaximum(derivative);
- }
-
- /**
- *
- */
- public void testLocalMaximumBackward() {
- UnivariateRealFunction function = new SinFunction();
- UnivariateRealFunction derivative = UnivariateRealFunctionUtils.backwardDifferenceDerivative(function, 1.0e-5);
- testLocalMaximum(derivative);
- }
-
- /**
- * Find a local extrema, i.e. f'(x) = 0.
- */
- private void testLocalMaximum(UnivariateRealFunction derivative) {
- try {
- double maximum = UnivariateRealSolverUtils.solve(derivative, Math.PI / 3.0, Math.PI * 2.0 / 3.0);
- assertEquals(maximum, Math.PI / 2.0, 1.0e-5);
- } catch (Exception ex) {
- fail(ex.getMessage());
- }
- }
-}
Oops, something went wrong.

0 comments on commit 9998f15

Please sign in to comment.