blob: 9f36fc726cf25cd056b32fcab5861edfc76ae8e8 (
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
|