public virtual void AddIndividualValues(ICache <string, string> covariateValues)
        {
            foreach (var covariateValueKeyValue in covariateValues.KeyValues)
            {
                var covariateName  = covariateValueKeyValue.Key;
                var covariateValue = covariateValueKeyValue.Value;
                var covariates     = CovariateValuesFor(covariateName);
                if (covariates == null)
                {
                    covariates = new CovariateValues(covariateName);
                    Add(covariates);
                }

                covariates.Add(covariateValue);
            }
        }
 public virtual void Add(CovariateValues covariateValues) => _covariateValuesCache.Add(covariateValues);
        public virtual void Add(string covariateName, IReadOnlyList <string> values)
        {
            var covariates = new CovariateValues(covariateName, values.ToList());

            _covariateValuesCache[covariateName] = covariates;
        }
示例#4
0
 public void Merge(CovariateValues covariateValues)
 {
     Values.AddRange(covariateValues.Values);
 }