This is a nice way to allow various conventions. Sometimes -1 might be the right value. Other times a more principled value like NaN might be reasonable.
My proposal would be that for every algorithm that is able to handle >> missing data, we provide an argument (to constructors) that specifies the >> "double" value that represents a missing value. >> >
