Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        public StoryVar min(params StoryVar[] numbers)
        {
            double min = double.NaN;

            foreach (StoryVar num in HarloweSpread.Flatten(numbers))
            {
                if (num < min)
                {
                    min = num;
                }
            }

            return(min);
        }
Ejemplo n.º 3
0
        public StoryVar max(params StoryVar[] numbers)
        {
            double max = double.NaN;

            foreach (StoryVar num in HarloweSpread.Flatten(numbers))
            {
                if (num > max)
                {
                    max = num;
                }
            }

            return(max);
        }
Ejemplo n.º 4
0
 public HarloweDataset(IEnumerable <StoryVar> vals)
 {
     Values = new HashSet <StoryVar>(HarloweSpread.Flatten(vals));
 }
Ejemplo n.º 5
0
 public HarloweArray(IEnumerable <StoryVar> vals)
 {
     Values = new List <StoryVar>(HarloweSpread.Flatten(vals));
 }