


HIT_COMPUTE_DISC_MODES Estimate the mode PVs in discontinuous PWA models
-------------------------------------------------------------------------
DESCRIPTION
-------------------------------------------------------------------------
[final_models,final_Variances,final_Variances_denormaliz,Weight_primal]=...
hit_compute_disc_modes(F,ndata,weig)
-------------------------------------------------------------------------
INPUT
-------------------------------------------------------------------------
F: structure containing information about the mode datasets, see
hit_regression.m
ndata: total number of datapoints.
weigh(i): weight of the i-th datapoint used in weighted LS for estimating
the mode PVs.
-------------------------------------------------------------------------
OUTPUT
-------------------------------------------------------------------------
final_models(i,:) estimted PV of the i-th mode.
final_Variances{i}: variance of the i-th mode PV.
Weight_primal(i): if present returns the weight associated to the i-th
datapoint that should be used in building LDs. This is an experimental
feature currently not used for building LDs.