Esempio n. 1
0
        public static DataExtremum Merge(DataExtremum x, DataExtremum y)
        {
            var data = new List <double>();

            data.AddRange(x.data);
            data.AddRange(y.data);
            return(new DataExtremum(data));
        }
Esempio n. 2
0
        public DataExtremum Clone()
        {
            var extremum = new DataExtremum(data);

            extremum.Normalizor = Normalizor;

            return(extremum);
        }
Esempio n. 3
0
        public static DataExtremumsForNetwork Merge(DataExtremumsForNetwork x, DataExtremumsForNetwork y)
        {
            var ret = new DataExtremumsForNetwork();

            for (int i = 0; i < x.InputExtremums.Count; i++)
            {
                ret.InputExtremums.Add(DataExtremum.Merge(x.InputExtremums[i], y.InputExtremums[i]));
            }

            for (int i = 0; i < x.OutputExtremums.Count; i++)
            {
                ret.OutputExtremums.Add(DataExtremum.Merge(x.OutputExtremums[i], y.OutputExtremums[i]));
            }

            return(ret);
        }