Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set subversion properties on new files.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@643028 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Brent Worden
committed
Mar 31, 2008
1 parent
9e80375
commit edbf811
Showing
7 changed files
with
402 additions
and
402 deletions.
There are no files selected for viewing
116 changes: 58 additions & 58 deletions
116
src/java/org/apache/commons/math/genetics/ChromosomePair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
/* | ||
* 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.genetics; | ||
|
||
/** | ||
* A pair of {@link Chromosome} objects. | ||
*/ | ||
public class ChromosomePair { | ||
/** the first chromosome in the pair. */ | ||
private Chromosome first; | ||
|
||
/** the second chromosome in the pair. */ | ||
private Chromosome second; | ||
|
||
/** | ||
* Create a chromosome pair. | ||
* | ||
* @param c1 the first chromosome. | ||
* @param c2 the second chromosome. | ||
*/ | ||
public ChromosomePair(Chromosome c1, Chromosome c2) { | ||
super(); | ||
first = c1; | ||
second = c2; | ||
} | ||
|
||
/** | ||
* Access the first chromosome. | ||
* | ||
* @return the first chromosome. | ||
*/ | ||
public Chromosome getFirst() { | ||
return first; | ||
} | ||
|
||
/** | ||
* Access the second chromosome. | ||
* | ||
* @return the second chromosome. | ||
*/ | ||
public Chromosome getSecond() { | ||
return second; | ||
} | ||
} | ||
/* | ||
* 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.genetics; | ||
|
||
/** | ||
* A pair of {@link Chromosome} objects. | ||
*/ | ||
public class ChromosomePair { | ||
/** the first chromosome in the pair. */ | ||
private Chromosome first; | ||
|
||
/** the second chromosome in the pair. */ | ||
private Chromosome second; | ||
|
||
/** | ||
* Create a chromosome pair. | ||
* | ||
* @param c1 the first chromosome. | ||
* @param c2 the second chromosome. | ||
*/ | ||
public ChromosomePair(Chromosome c1, Chromosome c2) { | ||
super(); | ||
first = c1; | ||
second = c2; | ||
} | ||
|
||
/** | ||
* Access the first chromosome. | ||
* | ||
* @return the first chromosome. | ||
*/ | ||
public Chromosome getFirst() { | ||
return first; | ||
} | ||
|
||
/** | ||
* Access the second chromosome. | ||
* | ||
* @return the second chromosome. | ||
*/ | ||
public Chromosome getSecond() { | ||
return second; | ||
} | ||
} |
64 changes: 32 additions & 32 deletions
64
src/java/org/apache/commons/math/genetics/CrossoverPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
/* | ||
* 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.genetics; | ||
|
||
/** | ||
* Policy used to create a pair of new chromosomes by performing a crossover | ||
* operation on a source pair of chromosomes. | ||
*/ | ||
public interface CrossoverPolicy { | ||
/** | ||
* Perform a crossover operation on the given chromosomes. | ||
* | ||
* @param first the first chromosome. | ||
* @param second the second chromosome. | ||
* @return the pair of new chromosomes that resulted from the crossover. | ||
*/ | ||
ChromosomePair crossover(Chromosome first, Chromosome second); | ||
} | ||
/* | ||
* 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.genetics; | ||
|
||
/** | ||
* Policy used to create a pair of new chromosomes by performing a crossover | ||
* operation on a source pair of chromosomes. | ||
*/ | ||
public interface CrossoverPolicy { | ||
/** | ||
* Perform a crossover operation on the given chromosomes. | ||
* | ||
* @param first the first chromosome. | ||
* @param second the second chromosome. | ||
* @return the pair of new chromosomes that resulted from the crossover. | ||
*/ | ||
ChromosomePair crossover(Chromosome first, Chromosome second); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/* | ||
* 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.genetics; | ||
|
||
public interface Fitness extends Comparable { | ||
} | ||
/* | ||
* 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.genetics; | ||
|
||
public interface Fitness extends Comparable { | ||
} |
Oops, something went wrong.