

Java example source code file (proposal.xml)
The proposal.xml Java example source code<?xml version="1.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/LICENSE2.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.
>
<document>
<properties>
<title>Proposal for math Package
<author email="martin@mvdb.net">Robert Burrell Donkin
</properties>
<body>
<section name='Proposal for math Package'>
<subsection name='(0) Rationale'>
<p>The Java programming language and the math extensions in commonslang provide implementations
for only the most basic mathematical algorithms. Routine development tasks such as computing
basic statistics or solving a system of linear equations require components not available in java
or commonslang.</p>
<p>Most basic mathematical or statistical algorithms are available in open source implementations,
but to assemble a simple set of capabilities one has to use multiple libraries, many of which have
more restrictive licensing terms than the ASF. In addition, many of the best open source
implementations (e.g. the R statistical package) are either not available in Java or require large
support libraries and/or external dependencies to work.</p>
<p>A commonsmath community will provide a productive environment for aggregation, testing and
support of efficient Java implementations of commonly used mathematical and statistical algorithms.</p>
</subsection>
<subsection name='(1) Scope of the Package'>
<p>The Math project shall create and maintain a library of lightweight, selfcontained mathematics
and statistics components addressing the most common practical problems not immediately available in
the Java programming language or commonslang. The guiding principles for commonsmath will be:
<ol>
<li>Realworld application use cases determine priority
<li>Emphasis on small, easily integrated components rather than large libraries with complex
dependencies</li>
<li>All algorithms are fully documented and follow generally accepted best practices
<li>In situations where multiple standard algorithms exist, use the Strategy pattern to support
multiple implementations</li>
<li>Limited dependencies. No external dependencies beyond Commons components and the JDK
</ol>
</p>
</subsection>
<subsection name='(1.5) Interaction With Other Packages'>
<p>math relies only on standard JDK 1.2 (or later) APIs for
production deployment. It utilizes the JUnit unit testing framework for
developing and executing unit tests, but this is of interest only to
developers of the component.</p>
<p>No external configuration files are utilized.
</subsection>
<subsection name='(2) Initial Source of the Package'>
<p>The initial codebase will consist of implementations of basic statistical algorithms such
as the following:
<ul>
<li>Simple univariate statistics (mean, standard deviation, n, confidence intervals)
<li>Frequency distributions
<li>ttest, chisquare test
<li>Random numbers from Gaussian, Exponential, Poisson distributions
<li>Random sampling/resampling
<li>Bivariate regression, corellation
</ul>
and mathematical algorithms such as the following:
<ul>
<li>Basic Complex Number representation with algebraic operations
<li>Newton's method for finding roots
<li>Binomial coefficients
<li>Exponential growth and decay (set up for financial applications)
<li>Polynomial Interpolation (curve fitting)
<li>Basic Matrix representation with algebraic operations
</ul>
</p>
<p>The proposed package name for the new component is
<code>org.apache.commons.math3.
</subsection>
<subsection name='(3) Required JakartaCommons Resources'>
<ul>
<li>CVS Repository  New directory
Other Java examples (source code examples)Here is a short list of links related to this Java proposal.xml source code file: 
Copyright 19982021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.