| <!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 (1.8.0_222) on Mon Sep 30 16:21:15 BST 2019 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>DatasetUtils (The Eclipse January API Documentation)</title> |
| <meta name="date" content="2019-09-30"> |
| <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="DatasetUtils (The Eclipse January API Documentation)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":41,"i6":41,"i7":41,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":41,"i17":9,"i18":9,"i19":9,"i20":41,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":41,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <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="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/january/dataset/DateDataset.html" title="interface in org.eclipse.january.dataset"><span class="typeNameLink">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/8/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/8/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="memberSummary" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#utilsLogger">utilsLogger</a></span></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="memberSummary" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#DatasetUtils--">DatasetUtils</a></span>()</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="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#append-org.eclipse.january.dataset.IDataset-org.eclipse.january.dataset.IDataset-int-">append</a></span>(<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 id="i1" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#calcIndexesFromPositions-java.util.List-int:A-int...-">calcIndexesFromPositions</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i2" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#calcPositionsFromIndexes-org.eclipse.january.dataset.Dataset-int:A-">calcPositionsFromIndexes</a></span>(<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 id="i3" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.Dataset...-">cast</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> clazz, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... a)</code> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| </td> |
| </tr> |
| <tr id="i4" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.IDataset-">cast</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i5" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-org.eclipse.january.dataset.Dataset:A-int-">cast</a></span>(<a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>[] a, |
| int dtype)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.Dataset...-"><code>cast(Class, Dataset...)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i6" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-org.eclipse.january.dataset.IDataset-boolean-int-int-">cast</a></span>(<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"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.IDataset-"><code>cast(Class, IDataset)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i7" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-org.eclipse.january.dataset.IDataset-int-">cast</a></span>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| int dtype)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.IDataset-"><code>cast(Class, IDataset)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i8" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-int-java.lang.Class-org.eclipse.january.dataset.IDataset-boolean-">cast</a></span>(int isize, |
| <a href="https://docs.oracle.com/javase/8/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, |
| boolean repeat)</code> |
| <div class="block">Cast a dataset</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static double[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#centroid-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset...-">centroid</a></span>(<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 id="i10" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#choose-org.eclipse.january.dataset.IntegerDataset-java.lang.Object:A-boolean-boolean-">choose</a></span>(<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/8/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 id="i11" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#coerce-org.eclipse.january.dataset.Dataset-java.lang.Object-">coerce</a></span>(<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/8/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 id="i12" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#compoundCast-java.lang.Class-org.eclipse.january.dataset.Dataset...-">compoundCast</a></span>(<a href="https://docs.oracle.com/javase/8/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>... a)</code> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| </td> |
| </tr> |
| <tr id="i13" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#concatenate-org.eclipse.january.dataset.IDataset:A-int-">concatenate</a></span>(<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 id="i14" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#convertToDataset-org.eclipse.january.dataset.IDataset-">convertToDataset</a></span>(<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 id="i15" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#copy-java.lang.Class-org.eclipse.january.dataset.IDataset-">copy</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i16" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#copy-org.eclipse.january.dataset.IDataset-int-">copy</a></span>(<a href="../../../../org/eclipse/january/dataset/IDataset.html" title="interface in org.eclipse.january.dataset">IDataset</a> d, |
| int dtype)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#copy-java.lang.Class-org.eclipse.january.dataset.IDataset-"><code>copy(Class, IDataset)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset-java.lang.Class-org.eclipse.january.dataset.Dataset...-">createCompoundDataset</a></span>(<a href="https://docs.oracle.com/javase/8/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 id="i18" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset-org.eclipse.january.dataset.Dataset...-">createCompoundDataset</a></span>(<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 id="i19" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset-org.eclipse.january.dataset.Dataset-int-">createCompoundDataset</a></span>(<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 id="i20" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset-int-org.eclipse.january.dataset.Dataset...-">createCompoundDataset</a></span>(int dtype, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... datasets)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset-java.lang.Class-org.eclipse.january.dataset.Dataset...-"><code>createCompoundDataset(Class, Dataset...)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i21" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDatasetFromLastAxis-org.eclipse.january.dataset.Dataset-boolean-">createCompoundDatasetFromLastAxis</a></span>(<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 id="i22" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createDatasetFromCompoundDataset-org.eclipse.january.dataset.CompoundDataset-boolean-">createDatasetFromCompoundDataset</a></span>(<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 id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createJavaArray-org.eclipse.january.dataset.Dataset-">createJavaArray</a></span>(<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 id="i24" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#crossings-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-double-">crossings</a></span>(<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 id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#crossings-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-double-double-">crossings</a></span>(<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 id="i26" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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/8/docs/api/java/lang/Double.html?is-external=true" title="class or interface in java.lang">Double</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#crossings-org.eclipse.january.dataset.Dataset-double-">crossings</a></span>(<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 id="i27" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#diag-T-int-">diag</a></span>(T a, |
| int offset)</code> |
| <div class="block">Create a (off-)diagonal matrix from items in dataset</div> |
| </td> |
| </tr> |
| <tr id="i28" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#extract-org.eclipse.january.dataset.IDataset-org.eclipse.january.dataset.IDataset-">extract</a></span>(<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 id="i29" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#eye-java.lang.Class-int-int-int-">eye</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| int rows, |
| int cols, |
| int offset)</code> </td> |
| </tr> |
| <tr id="i30" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#eye-int-int-int-int-">eye</a></span>(int rows, |
| int cols, |
| int offset, |
| int dtype)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#eye-java.lang.Class-int-int-int-"><code>eye(Class, int, int, int)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i31" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findFirstOccurrences-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">findFirstOccurrences</a></span>(<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 id="i32" class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexEqualTo-org.eclipse.january.dataset.Dataset-double-">findIndexEqualTo</a></span>(<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 id="i33" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexesForValues-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset-">findIndexesForValues</a></span>(<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 id="i34" class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexGreaterThan-org.eclipse.january.dataset.Dataset-double-">findIndexGreaterThan</a></span>(<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 id="i35" class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexGreaterThanOrEqualTo-org.eclipse.january.dataset.Dataset-double-">findIndexGreaterThanOrEqualTo</a></span>(<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 id="i36" class="altColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexLessThan-org.eclipse.january.dataset.Dataset-double-">findIndexLessThan</a></span>(<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 id="i37" class="rowColor"> |
| <td class="colFirst"><code>static int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#findIndexLessThanOrEqualTo-org.eclipse.january.dataset.Dataset-double-">findIndexLessThanOrEqualTo</a></span>(<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 id="i38" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#flipLeftRight-T-">flipLeftRight</a></span>(T a)</code> |
| <div class="block">Flip items in left/right direction, column-wise, or along second axis</div> |
| </td> |
| </tr> |
| <tr id="i39" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#flipUpDown-T-">flipUpDown</a></span>(T a)</code> |
| <div class="block">Flip items in up/down direction, row-wise, or along first axis</div> |
| </td> |
| </tr> |
| <tr id="i40" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#indexSort-org.eclipse.january.dataset.Dataset-java.lang.Integer-">indexSort</a></span>(<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/8/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 id="i41" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#indices-int...-">indices</a></span>(int... shape)</code> |
| <div class="block">Generate an index dataset for given dataset where sub-datasets contain index values</div> |
| </td> |
| </tr> |
| <tr id="i42" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#lnnorm-org.eclipse.january.dataset.Dataset-">lnnorm</a></span>(<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 id="i43" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#lognorm-org.eclipse.january.dataset.Dataset-">lognorm</a></span>(<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 id="i44" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#makeFinite-org.eclipse.january.dataset.Dataset-">makeFinite</a></span>(<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 id="i45" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#makeUnsigned-org.eclipse.january.dataset.IDataset-">makeUnsigned</a></span>(<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 id="i46" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#makeUnsigned-org.eclipse.january.dataset.IDataset-boolean-">makeUnsigned</a></span>(<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 id="i47" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#meshGrid-org.eclipse.january.dataset.Dataset...-">meshGrid</a></span>(<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 id="i48" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#norm-org.eclipse.january.dataset.CompoundDataset-boolean-">norm</a></span>(<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 id="i49" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#norm-org.eclipse.january.dataset.Dataset-">norm</a></span>(<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 id="i50" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#put-T-org.eclipse.january.dataset.Dataset-java.lang.Object-">put</a></span>(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/8/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 id="i51" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#put-T-int:A-java.lang.Object-">put</a></span>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/8/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 id="i52" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#removeNansAndInfinities-org.eclipse.january.dataset.Dataset-java.lang.Number-">removeNansAndInfinities</a></span>(<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/8/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 id="i53" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#repeat-T-int:A-int-">repeat</a></span>(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 id="i54" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#resize-T-int...-">resize</a></span>(T a, |
| int... shape)</code> |
| <div class="block">Resize a dataset</div> |
| </td> |
| </tr> |
| <tr id="i55" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#roll-T-int-java.lang.Integer-">roll</a></span>(T a, |
| int shift, |
| <a href="https://docs.oracle.com/javase/8/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 id="i56" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#rollAxis-T-int-int-">rollAxis</a></span>(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 id="i57" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#rotate90-T-">rotate90</a></span>(T a)</code> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| </td> |
| </tr> |
| <tr id="i58" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#rotate90-T-int-">rotate90</a></span>(T a, |
| int k)</code> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| </td> |
| </tr> |
| <tr id="i59" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#select-org.eclipse.january.dataset.BooleanDataset:A-java.lang.Object:A-java.lang.Object-">select</a></span>(<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/8/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/8/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 id="i60" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#select-org.eclipse.january.dataset.BooleanDataset-java.lang.Object-java.lang.Object-">select</a></span>(<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/8/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/8/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 id="i61" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#serializeDataset-org.eclipse.january.dataset.IDataset-">serializeDataset</a></span>(<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 id="i62" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#setShapeToOriginalRank-org.eclipse.january.dataset.ILazyDataset-int:A-int...-">setShapeToOriginalRank</a></span>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a> a, |
| int[] originalShape, |
| int... axes)</code> |
| <div class="block">Set shape to keep original rank</div> |
| </td> |
| </tr> |
| <tr id="i63" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sliceAndConvertLazyDataset-org.eclipse.january.dataset.ILazyDataset-">sliceAndConvertLazyDataset</a></span>(<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 id="i64" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sort-org.eclipse.january.dataset.Dataset-org.eclipse.january.dataset.Dataset...-">sort</a></span>(<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 id="i65" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sort-T-">sort</a></span>(T a)</code> </td> |
| </tr> |
| <tr id="i66" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#sort-T-java.lang.Integer-">sort</a></span>(T a, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</code> </td> |
| </tr> |
| <tr id="i67" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#split-org.eclipse.january.dataset.Dataset-int:A-int-">split</a></span>(<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 id="i68" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#split-org.eclipse.january.dataset.Dataset-int-int-boolean-">split</a></span>(<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 id="i69" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#swapAxes-org.eclipse.january.dataset.IDataset-int-int-">swapAxes</a></span>(<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 id="i70" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#take-T-org.eclipse.january.dataset.Dataset-java.lang.Integer-">take</a></span>(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/8/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 id="i71" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#take-T-int:A-java.lang.Integer-">take</a></span>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/8/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 id="i72" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#tile-org.eclipse.january.dataset.IDataset-int...-">tile</a></span>(<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 id="i73" 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><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#transpose-org.eclipse.january.dataset.IDataset-int...-">transpose</a></span>(<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 id="i74" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#unwrapUnsigned-org.eclipse.january.dataset.Dataset-int-">unwrapUnsigned</a></span>(<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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/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/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ 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="paramLabel">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="returnLabel">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.92">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/8/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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>changed dataset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="put-org.eclipse.january.dataset.Dataset-int:A-java.lang.Object-"> |
| <!-- --> |
| </a><a name="put-T-int:A-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.112">put</a>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>indices</code> - </dd> |
| <dd><code>values</code> - </dd> |
| <dt><span class="returnLabel">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.130">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/8/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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>a sub-array</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="take-org.eclipse.january.dataset.Dataset-int:A-java.lang.Integer-"> |
| <!-- --> |
| </a><a name="take-T-int:A-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.141">take</a>(T a, |
| int[] indices, |
| <a href="https://docs.oracle.com/javase/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>indices</code> - </dd> |
| <dd><code>axis</code> - if null, then use flattened view</dd> |
| <dt><span class="returnLabel">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.195">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>reps</code> - </dd> |
| <dt><span class="returnLabel">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.297">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="paramLabel">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="returnLabel">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.308">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>axis1</code> - </dd> |
| <dd><code>axis2</code> - </dd> |
| <dt><span class="returnLabel">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.316">sort</a>(T a)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dt><span class="returnLabel">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.325">sort</a>(T a, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a> axis)</pre> |
| <dl> |
| <dt><span class="paramLabel">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="returnLabel">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.335">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="paramLabel">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.379">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/8/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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>indexes</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.1</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="concatenate-org.eclipse.january.dataset.IDataset:A-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.444">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="paramLabel">Parameters:</span></dt> |
| <dd><code>as</code> - </dd> |
| <dd><code>axis</code> - </dd> |
| <dt><span class="returnLabel">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/8/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.507">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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>list of split datasets</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="split-org.eclipse.january.dataset.Dataset-int:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>split</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/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.529">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>indices</code> - </dd> |
| <dd><code>axis</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>list of split datasets</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="repeat-org.eclipse.january.dataset.Dataset-int:A-int-"> |
| <!-- --> |
| </a><a name="repeat-T-int:A-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.590">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>repeats</code> - </dd> |
| <dd><code>axis</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>dataset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="resize-org.eclipse.january.dataset.Dataset-int:A-"> |
| <!-- --> |
| </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.683">resize</a>(T a, |
| int... shape)</pre> |
| <div class="block">Resize a dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>shape</code> - </dd> |
| <dt><span class="returnLabel">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><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| 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.705">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"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#copy-java.lang.Class-org.eclipse.january.dataset.IDataset-"><code>copy(Class, IDataset)</code></a></span></div> |
| <div class="block">Copy and cast a dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>d</code> - The dataset to be copied</dd> |
| <dd><code>dtype</code> - dataset type</dd> |
| <dt><span class="returnLabel">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.717">copy</a>(<a href="https://docs.oracle.com/javase/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <dd><code>d</code> - The dataset to be cast.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>dataset of given class (or same dataset if already of the right class)</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="cast-org.eclipse.january.dataset.IDataset-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| 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.810">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"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.IDataset-"><code>cast(Class, IDataset)</code></a></span></div> |
| <div class="block">Cast a dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>d</code> - The dataset to be cast.</dd> |
| <dd><code>dtype</code> - dataset type</dd> |
| <dt><span class="returnLabel">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.821">cast</a>(<a href="https://docs.oracle.com/javase/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <dd><code>d</code> - The dataset to be cast.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>dataset of given class</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><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| 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.843">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"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.IDataset-"><code>cast(Class, IDataset)</code></a></span></div> |
| <div class="block">Cast a dataset</div> |
| <dl> |
| <dt><span class="paramLabel">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> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>dataset of given type</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="cast-int-java.lang.Class-org.eclipse.january.dataset.IDataset-boolean-"> |
| <!-- --> |
| </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.858">cast</a>(int isize, |
| <a href="https://docs.oracle.com/javase/8/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, |
| boolean repeat)</pre> |
| <div class="block">Cast a dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <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> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="compoundCast-java.lang.Class-org.eclipse.january.dataset.Dataset...-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>compoundCast</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.939">compoundCast</a>(<a href="https://docs.oracle.com/javase/8/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>... a)</pre> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <dd><code>a</code> - The datasets to be cast.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>dataset of given class</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="cast-java.lang.Class-org.eclipse.january.dataset.Dataset...-"> |
| <!-- --> |
| </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.953">cast</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>> clazz, |
| <a href="../../../../org/eclipse/january/dataset/Dataset.html" title="interface in org.eclipse.january.dataset">Dataset</a>... a)</pre> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <dd><code>a</code> - The datasets to be cast.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>compound dataset of given class</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="cast-org.eclipse.january.dataset.Dataset:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cast</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| 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.994">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"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#cast-java.lang.Class-org.eclipse.january.dataset.Dataset...-"><code>cast(Class, Dataset...)</code></a></span></div> |
| <div class="block">Cast array of datasets to a compound dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - The datasets to be cast.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>compound dataset of given type</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.1004">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dt><span class="returnLabel">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.1016">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>check</code> - if true, then check for negative values</dd> |
| <dt><span class="returnLabel">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="simpleTagLabel">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.1061">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="paramLabel">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-java.lang.Class-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>eye</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.1188">eye</a>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> clazz, |
| int rows, |
| int cols, |
| int offset)</pre> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <dd><code>rows</code> - </dd> |
| <dd><code>cols</code> - </dd> |
| <dd><code>offset</code> - </dd> |
| <dd><code>dtype</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new 2d dataset of given shape and class, filled with ones on the (offset) diagonal</dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.3</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="eye-int-int-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>eye</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| 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.1216">eye</a>(int rows, |
| int cols, |
| int offset, |
| int dtype)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#eye-java.lang.Class-int-int-int-"><code>eye(Class, int, int, int)</code></a></span></div> |
| <dl> |
| <dt><span class="paramLabel">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="returnLabel">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.1240">diag</a>(T a, |
| int offset)</pre> |
| <div class="block">Create a (off-)diagonal matrix from items in dataset</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>offset</code> - </dd> |
| <dt><span class="returnLabel">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.1296">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="paramLabel">Parameters:</span></dt> |
| <dd><code>lazy</code> - can be null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Converted dataset or null</dd> |
| <dt><span class="throwsLabel">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.1310">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="paramLabel">Parameters:</span></dt> |
| <dd><code>data</code> - can be null</dd> |
| <dt><span class="returnLabel">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.1381">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="paramLabel">Parameters:</span></dt> |
| <dd><code>datasets</code> - </dd> |
| <dt><span class="returnLabel">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.1394">createCompoundDataset</a>(<a href="https://docs.oracle.com/javase/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>clazz</code> - dataset class</dd> |
| <dd><code>datasets</code> - </dd> |
| <dt><span class="returnLabel">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><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| 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.1407">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"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Please use the class-based methods in DatasetUtils, |
| such as <a href="../../../../org/eclipse/january/dataset/DatasetUtils.html#createCompoundDataset-java.lang.Class-org.eclipse.january.dataset.Dataset...-"><code>createCompoundDataset(Class, Dataset...)</code></a></span></div> |
| <div class="block">Create a compound dataset from given datasets</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>dtype</code> - </dd> |
| <dd><code>datasets</code> - </dd> |
| <dt><span class="returnLabel">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.1460">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="paramLabel">Parameters:</span></dt> |
| <dd><code>dataset</code> - </dd> |
| <dd><code>itemSize</code> - </dd> |
| <dt><span class="returnLabel">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.1509">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>shareData</code> - if true, then share data</dd> |
| <dt><span class="returnLabel">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.1537">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>shareData</code> - if true, then share data</dd> |
| <dt><span class="returnLabel">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.1549">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/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>obj</code> - </dd> |
| <dt><span class="returnLabel">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.1558">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset</dd> |
| <dt><span class="returnLabel">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.1575">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="paramLabel">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="returnLabel">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.1606">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset</dd> |
| <dt><span class="returnLabel">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.1621">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset</dd> |
| <dt><span class="returnLabel">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/8/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.1637">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="paramLabel">Parameters:</span></dt> |
| <dd><code>axes</code> - an array of 1D datasets representing axes</dd> |
| <dt><span class="returnLabel">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.1683">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="returnLabel">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.1728">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="paramLabel">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="returnLabel">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/8/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/8/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.1778">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="paramLabel">Parameters:</span></dt> |
| <dd><code>d</code> - </dd> |
| <dd><code>value</code> - </dd> |
| <dt><span class="returnLabel">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/8/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/8/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.1819">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="paramLabel">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="returnLabel">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/8/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/8/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.1849">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="paramLabel">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="returnLabel">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/8/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.1903">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset</dd> |
| <dt><span class="returnLabel">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.1949">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/8/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="paramLabel">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.2006">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="paramLabel">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.2066">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>n</code> - </dd> |
| <dt><span class="returnLabel">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.2082">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>n</code> - </dd> |
| <dt><span class="returnLabel">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.2098">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>n</code> - </dd> |
| <dt><span class="returnLabel">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.2114">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>n</code> - </dd> |
| <dt><span class="returnLabel">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.2130">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>n</code> - </dd> |
| <dt><span class="returnLabel">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.2146">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>values</code> - sorted 1D dataset of values to find</dd> |
| <dt><span class="returnLabel">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.2229">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>values</code> - sorted 1D dataset of values to find</dd> |
| <dt><span class="returnLabel">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.2315">roll</a>(T a, |
| int shift, |
| <a href="https://docs.oracle.com/javase/8/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="paramLabel">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="returnLabel">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.2364">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="paramLabel">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="returnLabel">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.2404">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset must be at least 2D</dd> |
| <dt><span class="returnLabel">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.2416">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="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset</dd> |
| <dt><span class="returnLabel">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.2425">rotate90</a>(T a)</pre> |
| <div class="block">Rotate items in first two dimension by 90 degrees anti-clockwise</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - dataset must be at least 2D</dd> |
| <dt><span class="returnLabel">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.2435">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="paramLabel">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="returnLabel">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.2471">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/8/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/8/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="paramLabel">Parameters:</span></dt> |
| <dd><code>condition</code> - boolean dataset</dd> |
| <dd><code>x</code> - </dd> |
| <dd><code>y</code> - </dd> |
| <dt><span class="returnLabel">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:A-java.lang.Object:A-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.2497">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/8/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/8/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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>dataset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="choose-org.eclipse.january.dataset.IntegerDataset-java.lang.Object:A-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.2553">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/8/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="paramLabel">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="returnLabel">Returns:</span></dt> |
| <dd>dataset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="calcPositionsFromIndexes-org.eclipse.january.dataset.Dataset-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>calcPositionsFromIndexes</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/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.2617">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="paramLabel">Parameters:</span></dt> |
| <dd><code>indices</code> - </dd> |
| <dd><code>shape</code> - </dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>list of positions as integer datasets</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="calcIndexesFromPositions-java.util.List-int:A-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.2645">calcIndexesFromPositions</a>(<a href="https://docs.oracle.com/javase/8/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="paramLabel">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="returnLabel">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/8/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.2705">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="paramLabel">Parameters:</span></dt> |
| <dd><code>data</code> - </dd> |
| <dt><span class="returnLabel">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="blockList"> |
| <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.2717">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="paramLabel">Parameters:</span></dt> |
| <dd><code>data</code> - </dd> |
| <dd><code>condition</code> - should be broadcastable to data</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>1-D dataset of values</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setShapeToOriginalRank-org.eclipse.january.dataset.ILazyDataset-int:A-int...-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>setShapeToOriginalRank</h4> |
| <pre>public static void <a href="../../../../src-html/org/eclipse/january/dataset/DatasetUtils.html#line.2769">setShapeToOriginalRank</a>(<a href="../../../../org/eclipse/january/dataset/ILazyDataset.html" title="interface in org.eclipse.january.dataset">ILazyDataset</a> a, |
| int[] originalShape, |
| int... axes)</pre> |
| <div class="block">Set shape to keep original rank</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>a</code> - </dd> |
| <dd><code>originalShape</code> - </dd> |
| <dd><code>axes</code> - </dd> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>2.2</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> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <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="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/eclipse/january/dataset/DateDataset.html" title="interface in org.eclipse.january.dataset"><span class="typeNameLink">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–2019 <a href="http://www.eclipse.org/">Eclipse Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |