@@ -158,6 +158,7 @@
<span class="kn">from</span> <span class="nn">ipfml</span> <span class="k">import</span> <span class="n">processing</span>
+
<span class="k">def</span> <span class="nf">_normalise</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">):</span>
@@ -155,6 +155,7 @@
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<div class="viewcode-block" id="normalize_arr"><a class="viewcode-back" href="../../ipfml/ipfml.utils.html#ipfml.utils.normalize_arr">[docs]</a><span class="k">def</span> <span class="nf">normalize_arr</span><span class="p">(</span><span class="n">arr</span><span class="p">):</span>
<span class="sd">'''Normalize data of 1D array shape</span>
@@ -7,6 +7,7 @@ import random
from ipfml import processing
def _normalise(x):
if isinstance(x, np.ndarray):
@@ -4,6 +4,7 @@ Utils functions of ipfml package (array normalization)
import numpy as np
def normalize_arr(arr):
'''Normalize data of 1D array shape