about summary refs log tree commit diff
path: root/BNW_parameter_learning/standardizeData.m
blob: b7673a1ab3950dfe0fb8ab5e735a112b16e91d3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function [ cases ] = standardizeData( labels, node_sizes, cases )
%standardizeData standardizes continuous nodes so they have a mean = 0
%   and standard deviation = 1
%
% standardizeData is called by readInput.m

nnodes = size(labels,2);

%fprintf(['Standardizing data for continuous nodes\n'])
for i = 1:nnodes
    if node_sizes(i) == 1
        temp = cell2num(cases(i,:));
        [temp] = standardize(temp);
        cases(i,:) = num2cell(temp);
    end
end


end