@@ -486,16 +518,16 @@ const getSymmetricDifferenceBetweenArrays = function (
...
@@ -486,16 +518,16 @@ const getSymmetricDifferenceBetweenArrays = function (
};
};
/**
/**
* Determines the indexes of timestamps that are missing from a smaller set of observatiuons. Based on the comparison of two observation arrays, where one array is larger than the other
* Determines the indexes of timestamps that are unique to the larger set of observatiuons. Based on the comparison of two observation arrays, where one array is larger than the other
* @param {Array} missingTimestampsArr An array of strings representing the missing timestamps
* @param {Array} uniqueTimestampsArr An array of timestamps unique to the larger set of observations
* @param {Array} largerObsTimestampArr An array of timestamps for the larger array of observations
* @param {Array} largerObsTimestampArr An array of timestamps for the larger set of observations
* @returns {Array} An array of the indexes of the missing observations
* @returns {Array} An array of the indexes of the missing observations
@@ -503,16 +535,19 @@ const getIndexOfMissingObservation = function (
...
@@ -503,16 +535,19 @@ const getIndexOfMissingObservation = function (
};
};
/**
/**
* Removes observations (by modifying array in place) from a larger set of observations that are missing from a smaller set of observatiuons. Based on the comparison of two observation arrays, where one array is larger than the other
* Removes observations (by modifying array in place) that are unique to a larger set of observations. Based on the comparison of two observation arrays, where one array is larger than the other
* @param {Array} missingIndexesArr An array of the indexes of the observations missing from the smaller set of observations
* @param {Array} uniqueIndexesArr An array of the indexes unique to the larger set of observations
* @param {Array} largerObsArr The larger array of observations (timestamp + value) which is modified in place
* @param {Array} largerObsArr The larger array of observations (timestamp + value) which is modified in place