| <!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_80) on Mon Oct 09 09:06:41 EDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>DatasetUtils (The Eclipse January API Documentation)</title> |
| <meta name="date" content="2017-10-09"> |
| <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="DatasetUtils (The Eclipse January API 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/DatasetUtils.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-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/eclipse/january/dataset/DatasetFactory.html" title="class in org.eclipse.january.dataset"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/january/dataset/DateDataset.html" title="interface in org.eclipse.january.dataset"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/january/dataset/DatasetUtils.html" target="_top">Frames</a></li> |
| <li><a href="DatasetUtils.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: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </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">org.eclipse.january.dataset</div> |
| <h2 title="Class DatasetUtils" class="title">Class DatasetUtils</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://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>org.eclipse.january.dataset.DatasetUtils</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.31">DatasetUtils</a> |
| extends <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Utilities for manipulating datasets</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected static org.slf4j.Logger</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#utilsLogger">utilsLogger</a></strong></code> |
| <div class="block">Setup the logging facilities</div> |
| </td> |
| </tr> |
| </table> |
| </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"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#DatasetUtils()">DatasetUtils</a></strong>()</code> </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"> </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>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#append(org.eclipse.january.dataset.IDataset,%20org.eclipse.january.dataset.IDataset,%20int)">append</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> b, |
| int axis)</code> |
| <div class="block">Append copy of dataset with another dataset along n-th axis</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#calcIndexesFromPositions(java.util.List,%20int[],%20int...)">calcIndexesFromPositions</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><? extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> positions, |
| int[] shape, |
| int... mode)</code> |
| <div class="block">Calculate indexes in given shape from datasets of position</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#calcPositionsFromIndexes(org.eclipse.january.dataset.Dataset,%20int[])">calcPositionsFromIndexes</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> indices, |
| int[] shape)</code> |
| <div class="block">Calculate positions in given shape from a dataset of 1-D indexes</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast(java.lang.Class,%20org.eclipse.january.dataset.IDataset)">cast</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d)</code> |
| <div class="block">Cast a dataset</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast(org.eclipse.january.dataset.Dataset[],%20int)">cast</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[] a, |
| int dtype)</code> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast(org.eclipse.january.dataset.IDataset,%20boolean,%20int,%20int)">cast</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| boolean repeat, |
| int dtype, |
| int isize)</code> |
| <div class="block">Cast a dataset</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast(org.eclipse.january.dataset.IDataset,%20int)">cast</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| int dtype)</code> |
| <div class="block">Cast a dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static double[]</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#centroid(org.eclipse.january.dataset.Dataset,%20org.eclipse.january.dataset.Dataset...)">centroid</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... bases)</code> |
| <div class="block">Get the centroid value of a dataset, this function works out the centroid in every direction</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#choose(org.eclipse.january.dataset.IntegerDataset,%20java.lang.Object[],%20boolean,%20boolean)">choose</a></strong>(<a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> index, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] choices, |
| boolean throwAIOOBE, |
| boolean clip)</code> |
| <div class="block">Choose content from choices where condition is true, otherwise use default.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#coerce(org.eclipse.january.dataset.Dataset,%20java.lang.Object)">coerce</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</code> |
| <div class="block">Create a copy that has been coerced to an appropriate dataset type |
| depending on the input object's class</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#concatenate(org.eclipse.january.dataset.IDataset[],%20int)">concatenate</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a>[] as, |
| int axis)</code> |
| <div class="block">Concatenate the set of datasets along given axis</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#convertToDataset(org.eclipse.january.dataset.IDataset)">convertToDataset</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> data)</code> |
| <div class="block">Convert (if necessary) a dataset obeying the interface to our implementation</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#copy(java.lang.Class,%20org.eclipse.january.dataset.IDataset)">copy</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d)</code> |
| <div class="block">Copy and cast a dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#copy(org.eclipse.january.dataset.IDataset,%20int)">copy</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| int dtype)</code> |
| <div class="block">Copy and cast a dataset</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset(java.lang.Class,%20org.eclipse.january.dataset.Dataset...)">createCompoundDataset</a></strong>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</code> |
| <div class="block">Create a compound dataset from given datasets</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset(org.eclipse.january.dataset.Dataset...)">createCompoundDataset</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</code> |
| <div class="block">Create a compound dataset from given datasets</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset(org.eclipse.january.dataset.Dataset,%20int)">createCompoundDataset</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> dataset, |
| int itemSize)</code> |
| <div class="block">Create a compound dataset from given dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset(int,%20org.eclipse.january.dataset.Dataset...)">createCompoundDataset</a></strong>(int dtype, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</code> |
| <div class="block">Create a compound dataset from given datasets</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDatasetFromLastAxis(org.eclipse.january.dataset.Dataset,%20boolean)">createCompoundDatasetFromLastAxis</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| boolean shareData)</code> |
| <div class="block">Create a compound dataset by using last axis as elements of an item</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createDatasetFromCompoundDataset(org.eclipse.january.dataset.CompoundDataset,%20boolean)">createDatasetFromCompoundDataset</a></strong>(<a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> a, |
| boolean shareData)</code> |
| <div class="block">Create a dataset from a compound dataset by using elements of an item as last axis</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createJavaArray(org.eclipse.january.dataset.Dataset)">createJavaArray</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</code> |
| <div class="block">Create Java array (of arrays) from dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#crossings(org.eclipse.january.dataset.Dataset,%20org.eclipse.january.dataset.Dataset,%20double)">crossings</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> xAxis, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> yAxis, |
| double yValue)</code> |
| <div class="block">Find x values of all the crossing points of the dataset with the given y value</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#crossings(org.eclipse.january.dataset.Dataset,%20org.eclipse.january.dataset.Dataset,%20double,%20double)">crossings</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> xAxis, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> yAxis, |
| double yValue, |
| double xRangeProportion)</code> |
| <div class="block">Function that uses the crossings function but prunes the result, so that multiple crossings within a |
| certain proportion of the overall range of the x values</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#crossings(org.eclipse.january.dataset.Dataset,%20double)">crossings</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> d, |
| double value)</code> |
| <div class="block">Find linearly-interpolated crossing points where the given dataset crosses the given value</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#diag(T,%20int)">diag</a></strong>(T a, |
| int offset)</code> |
| <div class="block">Create a (off-)diagonal matrix from items in dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#extract(org.eclipse.january.dataset.IDataset,%20org.eclipse.january.dataset.IDataset)">extract</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> data, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> condition)</code> |
| <div class="block">Extract values where condition is non-zero.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#eye(int,%20int,%20int,%20int)">eye</a></strong>(int rows, |
| int cols, |
| int offset, |
| int dtype)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findFirstOccurrences(org.eclipse.january.dataset.Dataset,%20org.eclipse.january.dataset.Dataset)">findFirstOccurrences</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> values)</code> |
| <div class="block">Find first occurrences in one dataset of values given in another sorted dataset</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexEqualTo(org.eclipse.january.dataset.Dataset,%20double)">findIndexEqualTo</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</code> |
| <div class="block">Find absolute index of first value in dataset that is equal to given number</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexesForValues(org.eclipse.january.dataset.Dataset,%20org.eclipse.january.dataset.Dataset)">findIndexesForValues</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> values)</code> |
| <div class="block">Find indexes in sorted dataset of values for each value in other dataset</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexGreaterThan(org.eclipse.january.dataset.Dataset,%20double)">findIndexGreaterThan</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</code> |
| <div class="block">Find absolute index of first value in dataset that is greater than given number</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexGreaterThanOrEqualTo(org.eclipse.january.dataset.Dataset,%20double)">findIndexGreaterThanOrEqualTo</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</code> |
| <div class="block">Find absolute index of first value in dataset that is greater than or equal to given number</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexLessThan(org.eclipse.january.dataset.Dataset,%20double)">findIndexLessThan</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</code> |
| <div class="block">Find absolute index of first value in dataset that is less than given number</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexLessThanOrEqualTo(org.eclipse.january.dataset.Dataset,%20double)">findIndexLessThanOrEqualTo</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</code> |
| <div class="block">Find absolute index of first value in dataset that is less than or equal to given number</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#flipLeftRight(T)">flipLeftRight</a></strong>(T a)</code> |
| <div class="block">Flip items in left/right direction, column-wise, or along second axis</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#flipUpDown(T)">flipUpDown</a></strong>(T a)</code> |
| <div class="block">Flip items in up/down direction, row-wise, or along first axis</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#indexSort(org.eclipse.january.dataset.Dataset,%20java.lang.Integer)">indexSort</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</code> |
| <div class="block">Indirectly sort along given axis</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#indices(int...)">indices</a></strong>(int... shape)</code> |
| <div class="block">Generate an index dataset for given dataset where sub-datasets contain index values</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#lnnorm(org.eclipse.january.dataset.Dataset)">lnnorm</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</code> |
| <div class="block">Function that returns a normalised dataset which is bounded between 0 and 1 |
| and has been distributed on a natural log scale</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#lognorm(org.eclipse.january.dataset.Dataset)">lognorm</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</code> |
| <div class="block">Function that returns a normalised dataset which is bounded between 0 and 1 |
| and has been distributed on a log10 scale</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#makeFinite(org.eclipse.january.dataset.Dataset)">makeFinite</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</code> |
| <div class="block">Make floating point datasets contain only finite values.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#makeUnsigned(org.eclipse.january.dataset.IDataset)">makeUnsigned</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a)</code> |
| <div class="block">Make a dataset unsigned by promoting it to a wider dataset type and unwrapping the signs |
| of its contents</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#makeUnsigned(org.eclipse.january.dataset.IDataset,%20boolean)">makeUnsigned</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| boolean check)</code> |
| <div class="block">Make a dataset unsigned by promoting it to a wider dataset type and unwrapping the signs |
| of its contents</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#meshGrid(org.eclipse.january.dataset.Dataset...)">meshGrid</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... axes)</code> |
| <div class="block">Construct a list of datasets where each represents a coordinate varying over the hypergrid |
| formed by the input list of axes</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#norm(org.eclipse.january.dataset.CompoundDataset,%20boolean)">norm</a></strong>(<a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> a, |
| boolean overAllElements)</code> |
| <div class="block">Function that returns a normalised compound dataset which is bounded between 0 and 1.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#norm(org.eclipse.january.dataset.Dataset)">norm</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</code> |
| <div class="block">Function that returns a normalised dataset which is bounded between 0 and 1</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#put(T,%20org.eclipse.january.dataset.Dataset,%20java.lang.Object)">put</a></strong>(T a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> values)</code> |
| <div class="block">Changes specific items of dataset by replacing them with other array</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#put(T,%20int[],%20java.lang.Object)">put</a></strong>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> values)</code> |
| <div class="block">Changes specific items of dataset by replacing them with other array</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#removeNansAndInfinities(org.eclipse.january.dataset.Dataset,%20java.lang.Number)">removeNansAndInfinities</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> value)</code> |
| <div class="block">Removes NaNs and infinities from floating point datasets.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#repeat(T,%20int[],%20int)">repeat</a></strong>(T a, |
| int[] repeats, |
| int axis)</code> |
| <div class="block">Constructs a dataset which has its elements along an axis replicated from |
| the original dataset by the number of times given in the repeats array.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#resize(T,%20int...)">resize</a></strong>(T a, |
| int... shape)</code> |
| <div class="block">Resize a dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#roll(T,%20int,%20java.lang.Integer)">roll</a></strong>(T a, |
| int shift, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</code> |
| <div class="block">Roll items over given axis by given amount</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#rollAxis(T,%20int,%20int)">rollAxis</a></strong>(T a, |
| int axis, |
| int start)</code> |
| <div class="block">Roll the specified axis backwards until it lies in given position</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#rotate90(T)">rotate90</a></strong>(T a)</code> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#rotate90(T,%20int)">rotate90</a></strong>(T a, |
| int k)</code> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#select(org.eclipse.january.dataset.BooleanDataset[],%20java.lang.Object[],%20java.lang.Object)">select</a></strong>(<a href="../../../../org/eclipse/january/dataset/BooleanDataset.html" title="class in org.eclipse.january.dataset">BooleanDataset</a>[] conditions, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] choices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def)</code> |
| <div class="block">Select content from choices where condition is true, otherwise use default.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#select(org.eclipse.january.dataset.BooleanDataset,%20java.lang.Object,%20java.lang.Object)">select</a></strong>(<a href="../../../../org/eclipse/january/dataset/BooleanDataset.html" title="class in org.eclipse.january.dataset">BooleanDataset</a> condition, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> x, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> y)</code> |
| <div class="block">Select content according where condition is true.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#serializeDataset(org.eclipse.january.dataset.IDataset)">serializeDataset</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> data)</code> |
| <div class="block">Serialize dataset by flattening it.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sliceAndConvertLazyDataset(org.eclipse.january.dataset.ILazyDataset)">sliceAndConvertLazyDataset</a></strong>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a> lazy)</code> |
| <div class="block">Slice (or fully load), if necessary, a lazy dataset, otherwise take a slice view and |
| convert to our dataset implementation.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sort(org.eclipse.january.dataset.Dataset,%20org.eclipse.january.dataset.Dataset...)">sort</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... b)</code> |
| <div class="block">Sort in place given dataset and reorder ancillary datasets too</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sort(T)">sort</a></strong>(T a)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sort(T,%20java.lang.Integer)">sort</a></strong>(T a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#split(org.eclipse.january.dataset.Dataset,%20int[],%20int)">split</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| int[] indices, |
| int axis)</code> |
| <div class="block">Split a dataset into parts along given axis</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#split(org.eclipse.january.dataset.Dataset,%20int,%20int,%20boolean)">split</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| int sections, |
| int axis, |
| boolean checkEqual)</code> |
| <div class="block">Split a dataset into equal sections along given axis</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#swapAxes(org.eclipse.january.dataset.IDataset,%20int,%20int)">swapAxes</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| int axis1, |
| int axis2)</code> |
| <div class="block">Swap two axes in dataset</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#take(T,%20org.eclipse.january.dataset.Dataset,%20java.lang.Integer)">take</a></strong>(T a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</code> |
| <div class="block">Take items from dataset along an axis</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <br>T</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#take(T,%20int[],%20java.lang.Integer)">take</a></strong>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</code> |
| <div class="block">Take items from dataset along an axis</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#tile(org.eclipse.january.dataset.IDataset,%20int...)">tile</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| int... reps)</code> |
| <div class="block">Construct a dataset that contains the original dataset repeated the number |
| of times in each axis given by corresponding entries in the reps array</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a></code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#transpose(org.eclipse.january.dataset.IDataset,%20int...)">transpose</a></strong>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| int... axes)</code> |
| <div class="block">Permute copy of dataset's axes so that given order is old order:</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><strong><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#unwrapUnsigned(org.eclipse.january.dataset.Dataset,%20int)">unwrapUnsigned</a></strong>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| int bitWidth)</code> |
| <div class="block">Unwrap dataset elements so that all elements are unsigned</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://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="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" 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"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field_detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="utilsLogger"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>utilsLogger</h4> |
| <pre>protected static final transient org.slf4j.Logger <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.36">utilsLogger</a></pre> |
| <div class="block">Setup the logging facilities</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor_detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="DatasetUtils()"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>DatasetUtils</h4> |
| <pre>public <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.31">DatasetUtils</a>()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method_detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="append(org.eclipse.january.dataset.IDataset, org.eclipse.january.dataset.IDataset, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>append</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.47">append</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> b, |
| int axis)</pre> |
| <div class="block">Append copy of dataset with another dataset along n-th axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>b</code> - </dd><dd><code>axis</code> - number of axis (negative number counts from last)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>appended dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="put(org.eclipse.january.dataset.Dataset,org.eclipse.january.dataset.Dataset,java.lang.Object)"> |
| <!-- --> |
| </a><a name="put(T, org.eclipse.january.dataset.Dataset, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.93">put</a>(T a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> values)</pre> |
| <div class="block">Changes specific items of dataset by replacing them with other array</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>indices</code> - dataset interpreted as integers</dd><dd><code>values</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>changed dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="put(org.eclipse.january.dataset.Dataset,int[],java.lang.Object)"> |
| <!-- --> |
| </a><a name="put(T, int[], java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>put</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.113">put</a>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> values)</pre> |
| <div class="block">Changes specific items of dataset by replacing them with other array</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>indices</code> - </dd><dd><code>values</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>changed dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="take(org.eclipse.january.dataset.Dataset,org.eclipse.january.dataset.Dataset,java.lang.Integer)"> |
| <!-- --> |
| </a><a name="take(T, org.eclipse.january.dataset.Dataset, java.lang.Integer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>take</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.131">take</a>(T a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</pre> |
| <div class="block">Take items from dataset along an axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>indices</code> - dataset interpreted as integers</dd><dd><code>axis</code> - if null, then use flattened view</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a sub-array</dd></dl> |
| </li> |
| </ul> |
| <a name="take(org.eclipse.january.dataset.Dataset,int[],java.lang.Integer)"> |
| <!-- --> |
| </a><a name="take(T, int[], java.lang.Integer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>take</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.143">take</a>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</pre> |
| <div class="block">Take items from dataset along an axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>indices</code> - </dd><dd><code>axis</code> - if null, then use flattened view</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a sub-array</dd></dl> |
| </li> |
| </ul> |
| <a name="tile(org.eclipse.january.dataset.IDataset, int...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>tile</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.197">tile</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| int... reps)</pre> |
| <div class="block">Construct a dataset that contains the original dataset repeated the number |
| of times in each axis given by corresponding entries in the reps array</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>reps</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>tiled dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="transpose(org.eclipse.january.dataset.IDataset, int...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>transpose</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.300">transpose</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| int... axes)</pre> |
| <div class="block">Permute copy of dataset's axes so that given order is old order: |
| <pre> |
| axisPerm = (p(0), p(1),...) => newdata(n(0), n(1),...) = olddata(o(0), o(1), ...) |
| such that n(i) = o(p(i)) for all i |
| </pre> |
| I.e. for a 3D dataset (1,0,2) implies the new dataset has its 1st dimension |
| running along the old dataset's 2nd dimension and the new 2nd is the old 1st. |
| The 3rd dimension is left unchanged.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>axes</code> - if null or zero length then axes order reversed</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>remapped copy of data</dd></dl> |
| </li> |
| </ul> |
| <a name="swapAxes(org.eclipse.january.dataset.IDataset, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>swapAxes</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.311">swapAxes</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| int axis1, |
| int axis2)</pre> |
| <div class="block">Swap two axes in dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>axis1</code> - </dd><dd><code>axis2</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>swapped dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="sort(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a><a name="sort(T)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sort</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.319">sort</a>(T a)</pre> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>sorted flattened copy of dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="sort(org.eclipse.january.dataset.Dataset,java.lang.Integer)"> |
| <!-- --> |
| </a><a name="sort(T, java.lang.Integer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sort</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.328">sort</a>(T a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</pre> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>axis</code> - to sort along, if null then dataset is first flattened</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset sorted along axis</dd></dl> |
| </li> |
| </ul> |
| <a name="sort(org.eclipse.january.dataset.Dataset, org.eclipse.january.dataset.Dataset...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sort</h4> |
| <pre>public static void <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.338">sort</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... b)</pre> |
| <div class="block">Sort in place given dataset and reorder ancillary datasets too</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset to be sorted</dd><dd><code>b</code> - ancillary datasets</dd></dl> |
| </li> |
| </ul> |
| <a name="indexSort(org.eclipse.january.dataset.Dataset, java.lang.Integer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indexSort</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.382">indexSort</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</pre> |
| <div class="block">Indirectly sort along given axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset whose indexes will be sorted</dd><dd><code>axis</code> - to sort along, if null then dataset is first flattened</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>indexes</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.1</dd></dl> |
| </li> |
| </ul> |
| <a name="concatenate(org.eclipse.january.dataset.IDataset[], int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>concatenate</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.447">concatenate</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a>[] as, |
| int axis)</pre> |
| <div class="block">Concatenate the set of datasets along given axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>as</code> - </dd><dd><code>axis</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>concatenated dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="split(org.eclipse.january.dataset.Dataset, int, int, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>split</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.511">split</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| int sections, |
| int axis, |
| boolean checkEqual)</pre> |
| <div class="block">Split a dataset into equal sections along given axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>sections</code> - </dd><dd><code>axis</code> - </dd><dd><code>checkEqual</code> - makes sure the division is into equal parts</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>list of split datasets</dd></dl> |
| </li> |
| </ul> |
| <a name="split(org.eclipse.january.dataset.Dataset, int[], int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>split</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.533">split</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| int[] indices, |
| int axis)</pre> |
| <div class="block">Split a dataset into parts along given axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>indices</code> - </dd><dd><code>axis</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>list of split datasets</dd></dl> |
| </li> |
| </ul> |
| <a name="repeat(org.eclipse.january.dataset.Dataset,int[],int)"> |
| <!-- --> |
| </a><a name="repeat(T, int[], int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>repeat</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.594">repeat</a>(T a, |
| int[] repeats, |
| int axis)</pre> |
| <div class="block">Constructs a dataset which has its elements along an axis replicated from |
| the original dataset by the number of times given in the repeats array. |
| |
| By default, axis=-1 implies using a flattened version of the input dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>repeats</code> - </dd><dd><code>axis</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="resize(org.eclipse.january.dataset.Dataset,int[])"> |
| <!-- --> |
| </a><a name="resize(T, int...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resize</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.688">resize</a>(T a, |
| int... shape)</pre> |
| <div class="block">Resize a dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>shape</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>new dataset with new shape and items that are truncated or repeated, as necessary</dd></dl> |
| </li> |
| </ul> |
| <a name="copy(org.eclipse.january.dataset.IDataset, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.708">copy</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| int dtype)</pre> |
| <div class="block">Copy and cast a dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - The dataset to be copied</dd><dd><code>dtype</code> - dataset type</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>copied dataset of given type</dd></dl> |
| </li> |
| </ul> |
| <a name="copy(java.lang.Class, org.eclipse.january.dataset.IDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>copy</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.819">copy</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d)</pre> |
| <div class="block">Copy and cast a dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - dataset class</dd><dd><code>d</code> - The dataset to be copied</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>copied dataset of given type</dd></dl> |
| </li> |
| </ul> |
| <a name="cast(org.eclipse.january.dataset.IDataset, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.832">cast</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| int dtype)</pre> |
| <div class="block">Cast a dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - The dataset to be cast.</dd><dd><code>dtype</code> - dataset type</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset of given type (or same dataset if already of the right type)</dd></dl> |
| </li> |
| </ul> |
| <a name="cast(java.lang.Class, org.eclipse.january.dataset.IDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.849">cast</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d)</pre> |
| <div class="block">Cast a dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - dataset class</dd><dd><code>d</code> - The dataset to be cast.</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset of given type (or same dataset if already of the right type)</dd></dl> |
| </li> |
| </ul> |
| <a name="cast(org.eclipse.january.dataset.IDataset, boolean, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.862">cast</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| boolean repeat, |
| int dtype, |
| int isize)</pre> |
| <div class="block">Cast a dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - The dataset to be cast.</dd><dd><code>repeat</code> - repeat elements over item</dd><dd><code>dtype</code> - dataset type</dd><dd><code>isize</code> - item size</dd></dl> |
| </li> |
| </ul> |
| <a name="cast(org.eclipse.january.dataset.Dataset[], int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.945">cast</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[] a, |
| int dtype)</pre> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - The datasets to be cast.</dd></dl> |
| </li> |
| </ul> |
| <a name="makeUnsigned(org.eclipse.january.dataset.IDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeUnsigned</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.999">makeUnsigned</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a)</pre> |
| <div class="block">Make a dataset unsigned by promoting it to a wider dataset type and unwrapping the signs |
| of its contents</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>unsigned dataset or original if it is not an integer dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="makeUnsigned(org.eclipse.january.dataset.IDataset, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeUnsigned</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1011">makeUnsigned</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> a, |
| boolean check)</pre> |
| <div class="block">Make a dataset unsigned by promoting it to a wider dataset type and unwrapping the signs |
| of its contents</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>check</code> - if true, then check for negative values</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>unsigned dataset or original if it is not an integer dataset or it has been check for negative numbers</dd><dt><span class="strong">Since:</span></dt> |
| <dd>2.1</dd></dl> |
| </li> |
| </ul> |
| <a name="unwrapUnsigned(org.eclipse.january.dataset.Dataset, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>unwrapUnsigned</h4> |
| <pre>public static void <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1056">unwrapUnsigned</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| int bitWidth)</pre> |
| <div class="block">Unwrap dataset elements so that all elements are unsigned</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd><dd><code>bitWidth</code> - width of original primitive in bits</dd></dl> |
| </li> |
| </ul> |
| <a name="eye(int, int, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>eye</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1181">eye</a>(int rows, |
| int cols, |
| int offset, |
| int dtype)</pre> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>rows</code> - </dd><dd><code>cols</code> - </dd><dd><code>offset</code> - </dd><dd><code>dtype</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a new 2d dataset of given shape and type, filled with ones on the (offset) diagonal</dd></dl> |
| </li> |
| </ul> |
| <a name="diag(org.eclipse.january.dataset.Dataset,int)"> |
| <!-- --> |
| </a><a name="diag(T, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>diag</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1207">diag</a>(T a, |
| int offset)</pre> |
| <div class="block">Create a (off-)diagonal matrix from items in dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>offset</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>diagonal matrix</dd></dl> |
| </li> |
| </ul> |
| <a name="sliceAndConvertLazyDataset(org.eclipse.january.dataset.ILazyDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sliceAndConvertLazyDataset</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1264">sliceAndConvertLazyDataset</a>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a> lazy) |
| throws <a href="../../../../org/eclipse/january/DatasetException.html" title="class in org.eclipse.january">DatasetException</a></pre> |
| <div class="block">Slice (or fully load), if necessary, a lazy dataset, otherwise take a slice view and |
| convert to our dataset implementation. If a slice is necessary, this may cause resource |
| problems when used on large datasets and throw runtime exceptions</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>lazy</code> - can be null</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Converted dataset or null</dd> |
| <dt><span class="strong">Throws:</span></dt> |
| <dd><code><a href="../../../../org/eclipse/january/DatasetException.html" title="class in org.eclipse.january">DatasetException</a></code></dd></dl> |
| </li> |
| </ul> |
| <a name="convertToDataset(org.eclipse.january.dataset.IDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertToDataset</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1278">convertToDataset</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> data)</pre> |
| <div class="block">Convert (if necessary) a dataset obeying the interface to our implementation</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - can be null</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Converted dataset or null</dd></dl> |
| </li> |
| </ul> |
| <a name="createCompoundDataset(org.eclipse.january.dataset.Dataset...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createCompoundDataset</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1351">createCompoundDataset</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</pre> |
| <div class="block">Create a compound dataset from given datasets</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>datasets</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>compound dataset or null if none given</dd></dl> |
| </li> |
| </ul> |
| <a name="createCompoundDataset(int, org.eclipse.january.dataset.Dataset...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createCompoundDataset</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1364">createCompoundDataset</a>(int dtype, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</pre> |
| <div class="block">Create a compound dataset from given datasets</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dtype</code> - </dd><dd><code>datasets</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>compound dataset or null if none given</dd></dl> |
| </li> |
| </ul> |
| <a name="createCompoundDataset(java.lang.Class, org.eclipse.january.dataset.Dataset...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createCompoundDataset</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1417">createCompoundDataset</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</pre> |
| <div class="block">Create a compound dataset from given datasets</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - dataset class</dd><dd><code>datasets</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>compound dataset or null if none given</dd></dl> |
| </li> |
| </ul> |
| <a name="createCompoundDataset(org.eclipse.january.dataset.Dataset, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createCompoundDataset</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1427">createCompoundDataset</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> dataset, |
| int itemSize)</pre> |
| <div class="block">Create a compound dataset from given dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>dataset</code> - </dd><dd><code>itemSize</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>compound dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="createCompoundDatasetFromLastAxis(org.eclipse.january.dataset.Dataset, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createCompoundDatasetFromLastAxis</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1476">createCompoundDatasetFromLastAxis</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| boolean shareData)</pre> |
| <div class="block">Create a compound dataset by using last axis as elements of an item</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>shareData</code> - if true, then share data</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>compound dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="createDatasetFromCompoundDataset(org.eclipse.january.dataset.CompoundDataset, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createDatasetFromCompoundDataset</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1504">createDatasetFromCompoundDataset</a>(<a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> a, |
| boolean shareData)</pre> |
| <div class="block">Create a dataset from a compound dataset by using elements of an item as last axis |
| <p> |
| In the case where the number of elements is one, the last axis is squeezed out.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>shareData</code> - if true, then share data</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>non-compound dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="coerce(org.eclipse.january.dataset.Dataset, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>coerce</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1516">coerce</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> obj)</pre> |
| <div class="block">Create a copy that has been coerced to an appropriate dataset type |
| depending on the input object's class</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>obj</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>coerced copy of dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="norm(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>norm</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1528">norm</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</pre> |
| <div class="block">Function that returns a normalised dataset which is bounded between 0 and 1</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>normalised dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="norm(org.eclipse.january.dataset.CompoundDataset, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>norm</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1545">norm</a>(<a href="../../../../org/eclipse/january/dataset/CompoundDataset.html" title="interface in org.eclipse.january.dataset">CompoundDataset</a> a, |
| boolean overAllElements)</pre> |
| <div class="block">Function that returns a normalised compound dataset which is bounded between 0 and 1. There |
| are (at least) two ways to normalise a compound dataset: per element - extrema for each element |
| in a compound item is used, i.e. many min/max pairs; over all elements - extrema for all elements |
| is used, i.e. one min/max pair.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd><dd><code>overAllElements</code> - if true, then normalise over all elements in each item</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>normalised dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="lognorm(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lognorm</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1576">lognorm</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</pre> |
| <div class="block">Function that returns a normalised dataset which is bounded between 0 and 1 |
| and has been distributed on a log10 scale</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>normalised dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="lnnorm(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lnnorm</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1591">lnnorm</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</pre> |
| <div class="block">Function that returns a normalised dataset which is bounded between 0 and 1 |
| and has been distributed on a natural log scale</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>normalised dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="meshGrid(org.eclipse.january.dataset.Dataset...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>meshGrid</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1607">meshGrid</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... axes)</pre> |
| <div class="block">Construct a list of datasets where each represents a coordinate varying over the hypergrid |
| formed by the input list of axes</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>axes</code> - an array of 1D datasets representing axes</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a list of coordinate datasets</dd></dl> |
| </li> |
| </ul> |
| <a name="indices(int...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>indices</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1654">indices</a>(int... shape)</pre> |
| <div class="block">Generate an index dataset for given dataset where sub-datasets contain index values</div> |
| <dl><dt><span class="strong">Returns:</span></dt><dd>an index dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="centroid(org.eclipse.january.dataset.Dataset, org.eclipse.january.dataset.Dataset...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>centroid</h4> |
| <pre>public static double[] <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1699">centroid</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... bases)</pre> |
| <div class="block">Get the centroid value of a dataset, this function works out the centroid in every direction</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - the dataset to be analysed</dd><dd><code>bases</code> - the optional array of base coordinates to use as weights. |
| This defaults to the mid-point of indices</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>a double array containing the centroid for each dimension</dd></dl> |
| </li> |
| </ul> |
| <a name="crossings(org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>crossings</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1749">crossings</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> d, |
| double value)</pre> |
| <div class="block">Find linearly-interpolated crossing points where the given dataset crosses the given value</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>d</code> - </dd><dd><code>value</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>list of interpolated indices</dd></dl> |
| </li> |
| </ul> |
| <a name="crossings(org.eclipse.january.dataset.Dataset, org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>crossings</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1790">crossings</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> xAxis, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> yAxis, |
| double yValue)</pre> |
| <div class="block">Find x values of all the crossing points of the dataset with the given y value</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>xAxis</code> - Dataset of the X axis that needs to be looked at</dd><dd><code>yAxis</code> - Dataset of the Y axis that needs to be looked at</dd><dd><code>yValue</code> - The y value the X values are required for</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>An list of doubles containing all the X coordinates of where the line crosses</dd></dl> |
| </li> |
| </ul> |
| <a name="crossings(org.eclipse.january.dataset.Dataset, org.eclipse.january.dataset.Dataset, double, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>crossings</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1820">crossings</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> xAxis, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> yAxis, |
| double yValue, |
| double xRangeProportion)</pre> |
| <div class="block">Function that uses the crossings function but prunes the result, so that multiple crossings within a |
| certain proportion of the overall range of the x values</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>xAxis</code> - Dataset of the X axis</dd><dd><code>yAxis</code> - Dataset of the Y axis</dd><dd><code>yValue</code> - The y value the x values are required for</dd><dd><code>xRangeProportion</code> - The proportion of the overall x spread used to prune result</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>A list containing all the unique crossing points</dd></dl> |
| </li> |
| </ul> |
| <a name="createJavaArray(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createJavaArray</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1874">createJavaArray</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</pre> |
| <div class="block">Create Java array (of arrays) from dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>Java array (of arrays...)</dd></dl> |
| </li> |
| </ul> |
| <a name="removeNansAndInfinities(org.eclipse.january.dataset.Dataset, java.lang.Number)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>removeNansAndInfinities</h4> |
| <pre>public static void <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1919">removeNansAndInfinities</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> value)</pre> |
| <div class="block">Removes NaNs and infinities from floating point datasets. |
| All other dataset types are ignored.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd><dd><code>value</code> - replacement value</dd></dl> |
| </li> |
| </ul> |
| <a name="makeFinite(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeFinite</h4> |
| <pre>public static void <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.1976">makeFinite</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a)</pre> |
| <div class="block">Make floating point datasets contain only finite values. Infinities and NaNs are replaced |
| by +/- MAX_VALUE and 0, respectively. |
| All other dataset types are ignored.</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="findIndexEqualTo(org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findIndexEqualTo</h4> |
| <pre>public static int <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2036">findIndexEqualTo</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</pre> |
| <div class="block">Find absolute index of first value in dataset that is equal to given number</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>n</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute index (if greater than a.getSize() then no value found)</dd></dl> |
| </li> |
| </ul> |
| <a name="findIndexGreaterThan(org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findIndexGreaterThan</h4> |
| <pre>public static int <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2052">findIndexGreaterThan</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</pre> |
| <div class="block">Find absolute index of first value in dataset that is greater than given number</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>n</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute index (if greater than a.getSize() then no value found)</dd></dl> |
| </li> |
| </ul> |
| <a name="findIndexGreaterThanOrEqualTo(org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findIndexGreaterThanOrEqualTo</h4> |
| <pre>public static int <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2068">findIndexGreaterThanOrEqualTo</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</pre> |
| <div class="block">Find absolute index of first value in dataset that is greater than or equal to given number</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>n</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute index (if greater than a.getSize() then no value found)</dd></dl> |
| </li> |
| </ul> |
| <a name="findIndexLessThan(org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findIndexLessThan</h4> |
| <pre>public static int <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2084">findIndexLessThan</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</pre> |
| <div class="block">Find absolute index of first value in dataset that is less than given number</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>n</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute index (if greater than a.getSize() then no value found)</dd></dl> |
| </li> |
| </ul> |
| <a name="findIndexLessThanOrEqualTo(org.eclipse.january.dataset.Dataset, double)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findIndexLessThanOrEqualTo</h4> |
| <pre>public static int <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2100">findIndexLessThanOrEqualTo</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| double n)</pre> |
| <div class="block">Find absolute index of first value in dataset that is less than or equal to given number</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>n</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute index (if greater than a.getSize() then no value found)</dd></dl> |
| </li> |
| </ul> |
| <a name="findFirstOccurrences(org.eclipse.january.dataset.Dataset, org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findFirstOccurrences</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2116">findFirstOccurrences</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> values)</pre> |
| <div class="block">Find first occurrences in one dataset of values given in another sorted dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>values</code> - sorted 1D dataset of values to find</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute indexes of those first occurrences (-1 is used to indicate value not found)</dd></dl> |
| </li> |
| </ul> |
| <a name="findIndexesForValues(org.eclipse.january.dataset.Dataset, org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>findIndexesForValues</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2199">findIndexesForValues</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> a, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> values)</pre> |
| <div class="block">Find indexes in sorted dataset of values for each value in other dataset</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>values</code> - sorted 1D dataset of values to find</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>absolute indexes of values (-1 is used to indicate value not found)</dd></dl> |
| </li> |
| </ul> |
| <a name="roll(org.eclipse.january.dataset.Dataset,int,java.lang.Integer)"> |
| <!-- --> |
| </a><a name="roll(T, int, java.lang.Integer)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>roll</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2285">roll</a>(T a, |
| int shift, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</pre> |
| <div class="block">Roll items over given axis by given amount</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>shift</code> - </dd><dd><code>axis</code> - if null, then roll flattened dataset</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>rolled dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="rollAxis(org.eclipse.january.dataset.Dataset,int,int)"> |
| <!-- --> |
| </a><a name="rollAxis(T, int, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rollAxis</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2334">rollAxis</a>(T a, |
| int axis, |
| int start)</pre> |
| <div class="block">Roll the specified axis backwards until it lies in given position</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - </dd><dd><code>axis</code> - The rolled axis (index in shape array). Other axes are left unchanged in relative positions</dd><dd><code>start</code> - The position with it right of the destination of the rolled axis</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset with rolled axis</dd></dl> |
| </li> |
| </ul> |
| <a name="flipLeftRight(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a><a name="flipLeftRight(T)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>flipLeftRight</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2374">flipLeftRight</a>(T a)</pre> |
| <div class="block">Flip items in left/right direction, column-wise, or along second axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset must be at least 2D</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>view of flipped dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="flipUpDown(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a><a name="flipUpDown(T)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>flipUpDown</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2386">flipUpDown</a>(T a)</pre> |
| <div class="block">Flip items in up/down direction, row-wise, or along first axis</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>view of flipped dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="rotate90(org.eclipse.january.dataset.Dataset)"> |
| <!-- --> |
| </a><a name="rotate90(T)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rotate90</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2395">rotate90</a>(T a)</pre> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset must be at least 2D</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>view of flipped dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="rotate90(org.eclipse.january.dataset.Dataset,int)"> |
| <!-- --> |
| </a><a name="rotate90(T, int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rotate90</h4> |
| <pre>public static <T extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> T <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2405">rotate90</a>(T a, |
| int k)</pre> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>a</code> - dataset must be at least 2D</dd><dd><code>k</code> - number of 90-degree rotations</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>view of flipped dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="select(org.eclipse.january.dataset.BooleanDataset, java.lang.Object, java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>select</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2441">select</a>(<a href="../../../../org/eclipse/january/dataset/BooleanDataset.html" title="class in org.eclipse.january.dataset">BooleanDataset</a> condition, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> x, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> y)</pre> |
| <div class="block">Select content according where condition is true. All inputs are broadcasted to a maximum shape</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>condition</code> - boolean dataset</dd><dd><code>x</code> - </dd><dd><code>y</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset where content is x or y depending on whether condition is true or otherwise</dd></dl> |
| </li> |
| </ul> |
| <a name="select(org.eclipse.january.dataset.BooleanDataset[], java.lang.Object[], java.lang.Object)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>select</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2468">select</a>(<a href="../../../../org/eclipse/january/dataset/BooleanDataset.html" title="class in org.eclipse.january.dataset">BooleanDataset</a>[] conditions, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] choices, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> def)</pre> |
| <div class="block">Select content from choices where condition is true, otherwise use default. All inputs are broadcasted to a maximum shape</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>conditions</code> - array of boolean datasets</dd><dd><code>choices</code> - array of datasets or objects</dd><dd><code>def</code> - default value (can be a dataset)</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="choose(org.eclipse.january.dataset.IntegerDataset, java.lang.Object[], boolean, boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>choose</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2525">choose</a>(<a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> index, |
| <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] choices, |
| boolean throwAIOOBE, |
| boolean clip)</pre> |
| <div class="block">Choose content from choices where condition is true, otherwise use default. All inputs are broadcasted to a maximum shape</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - integer dataset (ideally, items should be in [0, n) range, if there are n choices)</dd><dd><code>choices</code> - array of datasets or objects</dd><dd><code>throwAIOOBE</code> - if true, throw array index out of bound exception</dd><dd><code>clip</code> - true to clip else wrap indices out of bounds; only used when throwAOOBE is false</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="calcPositionsFromIndexes(org.eclipse.january.dataset.Dataset, int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>calcPositionsFromIndexes</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a>> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2590">calcPositionsFromIndexes</a>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> indices, |
| int[] shape)</pre> |
| <div class="block">Calculate positions in given shape from a dataset of 1-D indexes</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>indices</code> - </dd><dd><code>shape</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>list of positions as integer datasets</dd></dl> |
| </li> |
| </ul> |
| <a name="calcIndexesFromPositions(java.util.List, int[], int...)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>calcIndexesFromPositions</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/IntegerDataset.html" title="class in org.eclipse.january.dataset">IntegerDataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2618">calcIndexesFromPositions</a>(<a href="https://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><? extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> positions, |
| int[] shape, |
| int... mode)</pre> |
| <div class="block">Calculate indexes in given shape from datasets of position</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>positions</code> - as a list of datasets where each holds the position in a dimension</dd><dd><code>shape</code> - </dd><dd><code>mode</code> - either null, zero-length, unit length or length of rank of shape where |
| 0 = raise exception, 1 = wrap, 2 = clip</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>indexes as an integer dataset</dd></dl> |
| </li> |
| </ul> |
| <a name="serializeDataset(org.eclipse.january.dataset.IDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>serializeDataset</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2678">serializeDataset</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> data)</pre> |
| <div class="block">Serialize dataset by flattening it. Discards metadata</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - </dd> |
| <dt><span class="strong">Returns:</span></dt><dd>some java array</dd></dl> |
| </li> |
| </ul> |
| <a name="extract(org.eclipse.january.dataset.IDataset, org.eclipse.january.dataset.IDataset)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>extract</h4> |
| <pre>public static <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a> <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2691">extract</a>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> data, |
| <a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> condition)</pre> |
| <div class="block">Extract values where condition is non-zero. This is similar to Dataset#getByBoolean but supports broadcasting</div> |
| <dl><dt><span class="strong">Parameters:</span></dt><dd><code>data</code> - </dd><dd><code>condition</code> - should be broadcastable to data</dd> |
| <dt><span class="strong">Returns:</span></dt><dd>1-D dataset of values</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/DatasetUtils.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-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/eclipse/january/dataset/DatasetFactory.html" title="class in org.eclipse.january.dataset"><span class="strong">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/january/dataset/DateDataset.html" title="interface in org.eclipse.january.dataset"><span class="strong">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/eclipse/january/dataset/DatasetUtils.html" target="_top">Frames</a></li> |
| <li><a href="DatasetUtils.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: </li> |
| <li>Nested | </li> |
| <li><a href="#field_summary">Field</a> | </li> |
| <li><a href="#constructor_summary">Constr</a> | </li> |
| <li><a href="#method_summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field_detail">Field</a> | </li> |
| <li><a href="#constructor_detail">Constr</a> | </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>Copyright © 2014–2017 <a href="http://www.eclipse.org/">Eclipse Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |