Ejemplo n.º 1
0
        private void BindSelectedAttributes(CaseSchema schema)
        {
            AttributeBinding = new AttributeBinding(schema, attributeNames);
            attributeMin     = new double[AttributeBinding.Count];
            attributeMax     = new double[AttributeBinding.Count];

            foreach (var binding in AttributeBinding)
            {
                if (schema[binding.Attribute].Type != typeof(double))
                {
                    throw new InvalidOperationException($"Only {typeof(double)} attributes are allowed for normalizer.");
                }

                attributeMin[binding.Binding] = double.PositiveInfinity;
                attributeMax[binding.Binding] = double.NegativeInfinity;
            }
        }