15
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2 <!--NewPage-->
|
|
3 <HTML>
|
|
4 <HEAD>
|
|
5 <!-- Generated by javadoc (build 1.6.0_17) on Sat Mar 27 22:46:12 EDT 2010 -->
|
|
6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7 <TITLE>
|
|
8 PermutationChromosome (Commons Math 2.1 API)
|
|
9 </TITLE>
|
|
10
|
|
11 <META NAME="date" CONTENT="2010-03-27">
|
|
12
|
|
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
|
14
|
|
15 <SCRIPT type="text/javascript">
|
|
16 function windowTitle()
|
|
17 {
|
|
18 if (location.href.indexOf('is-external=true') == -1) {
|
|
19 parent.document.title="PermutationChromosome (Commons Math 2.1 API)";
|
|
20 }
|
|
21 }
|
|
22 </SCRIPT>
|
|
23 <NOSCRIPT>
|
|
24 </NOSCRIPT>
|
|
25
|
|
26 </HEAD>
|
|
27
|
|
28 <BODY BGCOLOR="white" onload="windowTitle();">
|
|
29 <HR>
|
|
30
|
|
31
|
|
32 <!-- ========= START OF TOP NAVBAR ======= -->
|
|
33 <A NAME="navbar_top"><!-- --></A>
|
|
34 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
35 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
36 <TR>
|
|
37 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
38 <A NAME="navbar_top_firstrow"><!-- --></A>
|
|
39 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
40 <TR ALIGN="center" VALIGN="top">
|
|
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PermutationChromosome.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
49 </TR>
|
|
50 </TABLE>
|
|
51 </TD>
|
|
52 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
53 </EM>
|
|
54 </TD>
|
|
55 </TR>
|
|
56
|
|
57 <TR>
|
|
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
59 <A HREF="../../../../../org/apache/commons/math/genetics/OnePointCrossover.html" title="class in org.apache.commons.math.genetics"><B>PREV CLASS</B></A>
|
|
60 <A HREF="../../../../../org/apache/commons/math/genetics/Population.html" title="interface in org.apache.commons.math.genetics"><B>NEXT CLASS</B></A></FONT></TD>
|
|
61 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
62 <A HREF="../../../../../index.html?org/apache/commons/math/genetics/PermutationChromosome.html" target="_top"><B>FRAMES</B></A>
|
|
63 <A HREF="PermutationChromosome.html" target="_top"><B>NO FRAMES</B></A>
|
|
64 <SCRIPT type="text/javascript">
|
|
65 <!--
|
|
66 if(window==top) {
|
|
67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
68 }
|
|
69 //-->
|
|
70 </SCRIPT>
|
|
71 <NOSCRIPT>
|
|
72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
73 </NOSCRIPT>
|
|
74
|
|
75
|
|
76 </FONT></TD>
|
|
77 </TR>
|
|
78 <TR>
|
|
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
80 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
81 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
82 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
83 </TR>
|
|
84 </TABLE>
|
|
85 <A NAME="skip-navbar_top"></A>
|
|
86 <!-- ========= END OF TOP NAVBAR ========= -->
|
|
87
|
|
88 <HR>
|
|
89 <!-- ======== START OF CLASS DATA ======== -->
|
|
90 <H2>
|
|
91 <FONT SIZE="-1">
|
|
92 org.apache.commons.math.genetics</FONT>
|
|
93 <BR>
|
|
94 Interface PermutationChromosome<T></H2>
|
|
95 <DL>
|
|
96 <DT><DT><B>Type Parameters:</B><DD><CODE>T</CODE> - type of the permuted objects</DL>
|
|
97 <DL>
|
|
98 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/apache/commons/math/genetics/RandomKey.html" title="class in org.apache.commons.math.genetics">RandomKey</A></DD>
|
|
99 </DL>
|
|
100 <HR>
|
|
101 <DL>
|
|
102 <DT><PRE>public interface <A HREF="../../../../../src-html/org/apache/commons/math/genetics/PermutationChromosome.html#line.29"><B>PermutationChromosome<T></B></A></DL>
|
|
103 </PRE>
|
|
104
|
|
105 <P>
|
|
106 Interface indicating that the chromosome represents a permutation of objects.
|
|
107 <P>
|
|
108
|
|
109 <P>
|
|
110 <DL>
|
|
111 <DT><B>Since:</B></DT>
|
|
112 <DD>2.0</DD>
|
|
113 <DT><B>Version:</B></DT>
|
|
114 <DD>$Revision: 811786 $ $Date: 2009-09-06 05:36:08 -0400 (Sun, 06 Sep 2009) $</DD>
|
|
115 </DL>
|
|
116 <HR>
|
|
117
|
|
118 <P>
|
|
119
|
|
120 <!-- ========== METHOD SUMMARY =========== -->
|
|
121
|
|
122 <A NAME="method_summary"><!-- --></A>
|
|
123 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
124 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
125 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
126 <B>Method Summary</B></FONT></TH>
|
|
127 </TR>
|
|
128 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
129 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
130 <CODE> <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../../org/apache/commons/math/genetics/PermutationChromosome.html" title="type parameter in PermutationChromosome">T</A>></CODE></FONT></TD>
|
|
131 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/genetics/PermutationChromosome.html#decode(java.util.List)">decode</A></B>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../../org/apache/commons/math/genetics/PermutationChromosome.html" title="type parameter in PermutationChromosome">T</A>> sequence)</CODE>
|
|
132
|
|
133 <BR>
|
|
134 Permutes the <code>sequence</code> of objects of type T according to the
|
|
135 permutation this chromosome represents.</TD>
|
|
136 </TR>
|
|
137 </TABLE>
|
|
138
|
|
139 <P>
|
|
140
|
|
141 <!-- ============ METHOD DETAIL ========== -->
|
|
142
|
|
143 <A NAME="method_detail"><!-- --></A>
|
|
144 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
145 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
146 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
147 <B>Method Detail</B></FONT></TH>
|
|
148 </TR>
|
|
149 </TABLE>
|
|
150
|
|
151 <A NAME="decode(java.util.List)"><!-- --></A><H3>
|
|
152 decode</H3>
|
|
153 <PRE>
|
|
154 <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../../org/apache/commons/math/genetics/PermutationChromosome.html" title="type parameter in PermutationChromosome">T</A>> <A HREF="../../../../../src-html/org/apache/commons/math/genetics/PermutationChromosome.html#line.42"><B>decode</B></A>(<A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../../org/apache/commons/math/genetics/PermutationChromosome.html" title="type parameter in PermutationChromosome">T</A>> sequence)</PRE>
|
|
155 <DL>
|
|
156 <DD>Permutes the <code>sequence</code> of objects of type T according to the
|
|
157 permutation this chromosome represents. For example, if this chromosome
|
|
158 represents a permutation (3,0,1,2), and the unpermuted sequence is
|
|
159 (a,b,c,d), this yields (d,a,b,c).
|
|
160 <P>
|
|
161 <DD><DL>
|
|
162 <DT><B>Parameters:</B><DD><CODE>sequence</CODE> - the unpermuted (original) sequence of objects
|
|
163 <DT><B>Returns:</B><DD>permutation of <code>sequence</code> represented by this
|
|
164 permutation</DL>
|
|
165 </DD>
|
|
166 </DL>
|
|
167 <!-- ========= END OF CLASS DATA ========= -->
|
|
168 <HR>
|
|
169
|
|
170
|
|
171 <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
172 <A NAME="navbar_bottom"><!-- --></A>
|
|
173 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
174 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
175 <TR>
|
|
176 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
177 <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
178 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
179 <TR ALIGN="center" VALIGN="top">
|
|
180 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
181 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
182 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
183 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PermutationChromosome.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
184 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
185 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
186 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
187 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
188 </TR>
|
|
189 </TABLE>
|
|
190 </TD>
|
|
191 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
192 </EM>
|
|
193 </TD>
|
|
194 </TR>
|
|
195
|
|
196 <TR>
|
|
197 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
198 <A HREF="../../../../../org/apache/commons/math/genetics/OnePointCrossover.html" title="class in org.apache.commons.math.genetics"><B>PREV CLASS</B></A>
|
|
199 <A HREF="../../../../../org/apache/commons/math/genetics/Population.html" title="interface in org.apache.commons.math.genetics"><B>NEXT CLASS</B></A></FONT></TD>
|
|
200 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
201 <A HREF="../../../../../index.html?org/apache/commons/math/genetics/PermutationChromosome.html" target="_top"><B>FRAMES</B></A>
|
|
202 <A HREF="PermutationChromosome.html" target="_top"><B>NO FRAMES</B></A>
|
|
203 <SCRIPT type="text/javascript">
|
|
204 <!--
|
|
205 if(window==top) {
|
|
206 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
207 }
|
|
208 //-->
|
|
209 </SCRIPT>
|
|
210 <NOSCRIPT>
|
|
211 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
212 </NOSCRIPT>
|
|
213
|
|
214
|
|
215 </FONT></TD>
|
|
216 </TR>
|
|
217 <TR>
|
|
218 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
219 SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
220 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
221 DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
222 </TR>
|
|
223 </TABLE>
|
|
224 <A NAME="skip-navbar_bottom"></A>
|
|
225 <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
226
|
|
227 <HR>
|
|
228 Copyright © 2003-2010 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
|
|
229 </BODY>
|
|
230 </HTML>
|