1function hashid = getHash(sn, ind, inspace)
2% HASHID = GETHASH(QN, IND, INSPACE)
4% Copyright (c) 2012-2026, Imperial College London
13%ist = sn.nodeToStation(ind);
14isf = sn.nodeToStateful(ind);
16inspace = [zeros(size(inspace,1),size(sn.space{isf},2)-size(inspace,2)), inspace];
17if isempty(sn.space{isf})
18 line_error(mfilename,'Station state space
is not initialized. Use setStateSpace method.\n');
21hashid=zeros(size(inspace,1),1);
22for j=1:size(inspace,1)
23 if size(sn.space{isf},2)<size(inspace(j,:),2) % cutoff exceeded
26 hashid(j,1) = matchrow(sn.space{isf},inspace(j,:));