public StoryVar text(params StoryVar[] vals) { var buffer = new StringBuilder(); foreach (StoryVar val in HarloweSpread.Flatten(vals)) { buffer.Append(StoryVar.ConvertTo <string>(val, false)); } return(buffer.ToString()); }
public StoryVar min(params StoryVar[] numbers) { double min = double.NaN; foreach (StoryVar num in HarloweSpread.Flatten(numbers)) { if (num < min) { min = num; } } return(min); }
public StoryVar max(params StoryVar[] numbers) { double max = double.NaN; foreach (StoryVar num in HarloweSpread.Flatten(numbers)) { if (num > max) { max = num; } } return(max); }
public HarloweDataset(IEnumerable <StoryVar> vals) { Values = new HashSet <StoryVar>(HarloweSpread.Flatten(vals)); }
public HarloweArray(IEnumerable <StoryVar> vals) { Values = new List <StoryVar>(HarloweSpread.Flatten(vals)); }