Files
pj2/doc/edu/rit/numeric/ListXYSeries.html
2016-04-27 01:07:35 -04:00

593 lines
32 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Wed Apr 06 13:11:04 EDT 2016 -->
<title>ListXYSeries (Parallel Java 2 Library Documentation)</title>
<meta name="date" content="2016-04-06">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ListXYSeries (Parallel Java 2 Library Documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ListXYSeries.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../edu/rit/numeric/ListSeries.html" title="class in edu.rit.numeric"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../edu/rit/numeric/ListXYZSeries.html" title="class in edu.rit.numeric"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?edu/rit/numeric/ListXYSeries.html" target="_top">Frames</a></li>
<li><a href="ListXYSeries.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_classes_inherited_from_class_edu.rit.numeric.XYSeries">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">edu.rit.numeric</div>
<h2 title="Class ListXYSeries" class="title">Class ListXYSeries</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">edu.rit.numeric.XYSeries</a></li>
<li>
<ul class="inheritance">
<li>edu.rit.numeric.ListXYSeries</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">ListXYSeries</span>
extends <a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a>
implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></pre>
<div class="block">Class ListXYSeries provides a series of (<I>x,y</I>) pairs of real values
(type <TT>double</TT>); the series is variable-length.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../serialized-form.html#edu.rit.numeric.ListXYSeries">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_edu.rit.numeric.XYSeries">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;edu.rit.numeric.<a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a></h3>
<code><a href="../../../edu/rit/numeric/XYSeries.Regression.html" title="class in edu.rit.numeric">XYSeries.Regression</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#ListXYSeries()">ListXYSeries</a></strong>()</code>
<div class="block">Construct a new zero-length XY series.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(double...)">add</a></strong>(double...&nbsp;data)</code>
<div class="block">Add the given data to this series.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(double[], double[])">add</a></strong>(double[]&nbsp;x,
double[]&nbsp;y)</code>
<div class="block">Add the given data arrays to this series.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(double[], double[], int, int)">add</a></strong>(double[]&nbsp;x,
double[]&nbsp;y,
int&nbsp;off,
int&nbsp;len)</code>
<div class="block">Add a portion of the given data arrays to this series.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(double, double)">add</a></strong>(double&nbsp;x,
double&nbsp;y)</code>
<div class="block">Add the given data to this series.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(java.util.Scanner)">add</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html?is-external=true" title="class or interface in java.util">Scanner</a>&nbsp;scanner)</code>
<div class="block">Add data read from the given scanner to this series.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(edu.rit.numeric.XYSeries)">add</a></strong>(<a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a>&nbsp;theSeries)</code>
<div class="block">Add the given <a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a> to this series.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#add(edu.rit.numeric.XYSeries, int, int)">add</a></strong>(<a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a>&nbsp;theSeries,
int&nbsp;off,
int&nbsp;len)</code>
<div class="block">Add a portion of the given <a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a> to this series.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a></code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#clear()">clear</a></strong>()</code>
<div class="block">Clear this series.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#length()">length</a></strong>()</code>
<div class="block">Returns the number of values in this series.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#readExternal(java.io.ObjectInput)">readExternal</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io">ObjectInput</a>&nbsp;in)</code>
<div class="block">Read this series from the given object input stream.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#writeExternal(java.io.ObjectOutput)">writeExternal</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io">ObjectOutput</a>&nbsp;out)</code>
<div class="block">Write this series to the given object output stream.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#x(int)">x</a></strong>(int&nbsp;i)</code>
<div class="block">Returns the given X value in this series.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>double</code></td>
<td class="colLast"><code><strong><a href="../../../edu/rit/numeric/ListXYSeries.html#y(int)">y</a></strong>(int&nbsp;i)</code>
<div class="block">Returns the given Y value in this series.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_edu.rit.numeric.XYSeries">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;edu.rit.numeric.<a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a></h3>
<code><a href="../../../edu/rit/numeric/XYSeries.html#isEmpty()">isEmpty</a>, <a href="../../../edu/rit/numeric/XYSeries.html#linearRegression()">linearRegression</a>, <a href="../../../edu/rit/numeric/XYSeries.html#maxX()">maxX</a>, <a href="../../../edu/rit/numeric/XYSeries.html#maxY()">maxY</a>, <a href="../../../edu/rit/numeric/XYSeries.html#minX()">minX</a>, <a href="../../../edu/rit/numeric/XYSeries.html#minY()">minY</a>, <a href="../../../edu/rit/numeric/XYSeries.html#print()">print</a>, <a href="../../../edu/rit/numeric/XYSeries.html#print(java.io.PrintStream)">print</a>, <a href="../../../edu/rit/numeric/XYSeries.html#print(java.io.PrintWriter)">print</a>, <a href="../../../edu/rit/numeric/XYSeries.html#xSeries()">xSeries</a>, <a href="../../../edu/rit/numeric/XYSeries.html#ySeries()">ySeries</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="ListXYSeries()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ListXYSeries</h4>
<pre>public&nbsp;ListXYSeries()</pre>
<div class="block">Construct a new zero-length XY series.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="length()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>length</h4>
<pre>public&nbsp;int&nbsp;length()</pre>
<div class="block">Returns the number of values in this series.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../edu/rit/numeric/XYSeries.html#length()">length</a></code>&nbsp;in class&nbsp;<code><a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>Length.</dd></dl>
</li>
</ul>
<a name="x(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>x</h4>
<pre>public&nbsp;double&nbsp;x(int&nbsp;i)</pre>
<div class="block">Returns the given X value in this series.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../edu/rit/numeric/XYSeries.html#x(int)">x</a></code>&nbsp;in class&nbsp;<code><a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - Index.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The X value in this series at index <TT>i</TT>.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if <TT>i</TT> is not in the range
<TT>0</TT> .. <TT>length()-1</TT>.</dd></dl>
</li>
</ul>
<a name="y(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>y</h4>
<pre>public&nbsp;double&nbsp;y(int&nbsp;i)</pre>
<div class="block">Returns the given Y value in this series.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../edu/rit/numeric/XYSeries.html#y(int)">y</a></code>&nbsp;in class&nbsp;<code><a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>i</code> - Index.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The Y value in this series at index <TT>i</TT>.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if <TT>i</TT> is not in the range
<TT>0</TT> .. <TT>length()-1</TT>.</dd></dl>
</li>
</ul>
<a name="clear()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;clear()</pre>
<div class="block">Clear this series.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>This series.</dd></dl>
</li>
</ul>
<a name="add(double, double)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(double&nbsp;x,
double&nbsp;y)</pre>
<div class="block">Add the given data to this series.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - X value.</dd><dd><code>y</code> - Y value.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd></dl>
</li>
</ul>
<a name="add(double...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(double...&nbsp;data)</pre>
<div class="block">Add the given data to this series. The data values are grouped into
pairs, where the first data value is the X value and the second data
value is the Y value. Each pair of data values is added to this series as
though by the <TT>add(double,double)</TT> method. It is assumed that
there are an even number of data values.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - Data values.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd></dl>
</li>
</ul>
<a name="add(double[], double[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(double[]&nbsp;x,
double[]&nbsp;y)</pre>
<div class="block">Add the given data arrays to this series. Each element of <TT>x</TT> and
<TT>y</TT> is added to this series as though by the
<TT>add(double,double)</TT> method. It is assumed that <TT>x</TT> and
<TT>y</TT> are the same length.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Array of X values.</dd><dd><code>y</code> - Array of Y values.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>x</TT> or <TT>y</TT> is null.</dd></dl>
</li>
</ul>
<a name="add(double[], double[], int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(double[]&nbsp;x,
double[]&nbsp;y,
int&nbsp;off,
int&nbsp;len)</pre>
<div class="block">Add a portion of the given data arrays to this series. Each element of
<TT>x</TT> and <TT>y</TT> from index <TT>off</TT> through index
<TT>off+len-1</TT> inclusive is added to this series as though by the
<TT>add(double,double)</TT> method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>x</code> - Array of X values.</dd><dd><code>y</code> - Array of Y values.</dd><dd><code>off</code> - Index of first element to add.</dd><dd><code>len</code> - Number of elements to add.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>x</TT> or <TT>y</TT> is null.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if <TT>off</TT> &lt; 0, <TT>len</TT>
&lt; 0, <TT>off+len</TT> &gt; <TT>x.length</TT>, or <TT>off+len</TT>
&gt; <TT>y.length</TT>.</dd></dl>
</li>
</ul>
<a name="add(edu.rit.numeric.XYSeries)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(<a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a>&nbsp;theSeries)</pre>
<div class="block">Add the given <a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a> to this series. Each corresponding X
and Y value in the given X-Y series is added to this series as though by
the <TT>add(double,double)</TT> method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSeries</code> - X-Y series.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theSeries</TT> is null.</dd></dl>
</li>
</ul>
<a name="add(edu.rit.numeric.XYSeries, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(<a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a>&nbsp;theSeries,
int&nbsp;off,
int&nbsp;len)</pre>
<div class="block">Add a portion of the given <a href="../../../edu/rit/numeric/XYSeries.html" title="class in edu.rit.numeric">XYSeries</a> to this series. Each
corresponding X and Y value in the given X-Y series from index
<TT>off</TT> through index <TT>off+len-1</TT> inclusive is added to this
series as though by the <TT>add(double,double)</TT> method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theSeries</code> - X-Y series.</dd><dd><code>off</code> - Index of first element to add.</dd><dd><code>len</code> - Number of elements to add.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>theSeries</TT> is null.</dd>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/IndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">IndexOutOfBoundsException</a></code> - (unchecked exception) Thrown if <TT>off</TT> &lt; 0, <TT>len</TT>
&lt; 0, or <TT>off+len</TT> &gt; <TT>theSeries.length()</TT>.</dd></dl>
</li>
</ul>
<a name="add(java.util.Scanner)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public&nbsp;<a href="../../../edu/rit/numeric/ListXYSeries.html" title="class in edu.rit.numeric">ListXYSeries</a>&nbsp;add(<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html?is-external=true" title="class or interface in java.util">Scanner</a>&nbsp;scanner)</pre>
<div class="block">Add data read from the given scanner to this series. Double values are
read from the scanner until there are no more. Each pair of consecutive
double values is added to this series as though by the
<TT>add(double,double)</TT> method. Any leftover double value is
discarded. The <TT>add()</TT> method does <I>not</I> close the scanner
when finished.
<P>
To read data from a file, pass a scanner constructed on top of the file;
to read data from an input stream, pass a scanner constructed on top of
the input stream; and so on.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>scanner</code> - Scanner.</dd>
<dt><span class="strong">Returns:</span></dt><dd>This series.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - (unchecked exception) Thrown if <TT>scanner</TT> is null.</dd></dl>
</li>
</ul>
<a name="writeExternal(java.io.ObjectOutput)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeExternal</h4>
<pre>public&nbsp;void&nbsp;writeExternal(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectOutput.html?is-external=true" title="class or interface in java.io">ObjectOutput</a>&nbsp;out)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Write this series to the given object output stream.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true#writeExternal(java.io.ObjectOutput)" title="class or interface in java.io">writeExternal</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>out</code> - Object output stream.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - Thrown if an I/O error occurred.</dd></dl>
</li>
</ul>
<a name="readExternal(java.io.ObjectInput)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>readExternal</h4>
<pre>public&nbsp;void&nbsp;readExternal(<a href="http://docs.oracle.com/javase/7/docs/api/java/io/ObjectInput.html?is-external=true" title="class or interface in java.io">ObjectInput</a>&nbsp;in)
throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
<div class="block">Read this series from the given object input stream.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true#readExternal(java.io.ObjectInput)" title="class or interface in java.io">readExternal</a></code>&nbsp;in interface&nbsp;<code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Externalizable.html?is-external=true" title="class or interface in java.io">Externalizable</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>in</code> - Object input stream.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - Thrown if an I/O error occurred.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ListXYSeries.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../edu/rit/numeric/ListSeries.html" title="class in edu.rit.numeric"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../edu/rit/numeric/ListXYZSeries.html" title="class in edu.rit.numeric"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?edu/rit/numeric/ListXYSeries.html" target="_top">Frames</a></li>
<li><a href="ListXYSeries.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested_classes_inherited_from_class_edu.rit.numeric.XYSeries">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><FONT SIZE="-2">Copyright &copy; 2013&ndash;2016 by Alan Kaminsky. All rights reserved. Send comments to ark</FONT><FONT SIZE="1" COLOR="#FFFFFF">&shy;</FONT><FONT SIZE="-2">&#64;</FONT><FONT SIZE="1" COLOR="#FFFFFF">&shy;</FONT><FONT SIZE="-2">cs.rit.edu.</FONT></small></p>
</body>
</html>