How can I specify the distance between values in such row
Just a little bit of python:

import numpy as np

def splitVector(v):
    thres = (np.max(v)-np.min(v))/2
    return v[v&lt;=thres], v[v&gt;thres]


This will yield two vectors with just the lower or higher elements. If you want to preserve overall size and position of arguments, just a little modification will do it:

import numpy as np

def splitVector(v):
    thres = (np.max(v)-np.min(v))/2
    return np.where(v&lt;=thres,v,0), np.where(v&gt;thres,v,0)


This will fill in zeros for all elements not fulfilling the condition.