function class_membership=class_membership_assigner(class_1,class_2,data_for_classing)
%called by analyze_sd_over_time

class_membership=[];
for current_class_consideree=1:length(data_for_classing)
    if find(data_for_classing(current_class_consideree)==class_1),class_membership(current_class_consideree)=1;
    elseif find(data_for_classing(current_class_consideree)==class_2),class_membership(current_class_consideree)=2;
    else class_membership(current_class_consideree)=0;
    end
end