Accord.Math.Vector.Scale C# (CSharp) Method

Scale() public static method

Converts values from one scale to another scale.
public static Scale ( this values, IRange fromRange, IRange toRange ) : short[]
values this
fromRange IRange
toRange IRange
return short[]
        public static short[] Scale(this double[] values, IRange<double> fromRange, IRange<short> toRange)
        {
            return Scale(values, fromRange.Min, fromRange.Max, toRange.Min, toRange.Max, new short[values.Length]);
        }

Same methods

Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : byte
Vector::Scale ( this value, byte fromMin, byte fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this value, double fromMin, double fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this value, float fromMin, float fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this value, int fromMin, int fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this value, long fromMin, long fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this value, short fromMin, short fromMax, byte toMin, byte toMax ) : byte
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : byte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, byte result ) : byte[]
Vector::Scale ( this values, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, byte fromMin, byte fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, byte fromMin, byte fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, double fromMin, double fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, double fromMin, double fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, float fromMin, float fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, float fromMin, float fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, int fromMin, int fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, int fromMin, int fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, long fromMin, long fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, long fromMin, long fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this values, short fromMin, short fromMax, byte toMin, byte toMax ) : byte[]
Vector::Scale ( this values, short fromMin, short fromMax, byte toMin, byte toMax, byte result ) : byte[]
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : double
Vector::Scale ( this value, byte fromMin, byte fromMax, double toMin, double toMax ) : double
Vector::Scale ( this value, double fromMin, double fromMax, double toMin, double toMax ) : double
Vector::Scale ( this value, float fromMin, float fromMax, double toMin, double toMax ) : double
Vector::Scale ( this value, int fromMin, int fromMax, double toMin, double toMax ) : double
Vector::Scale ( this value, long fromMin, long fromMax, double toMin, double toMax ) : double
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, double toMin, double toMax ) : double
Vector::Scale ( this value, short fromMin, short fromMax, double toMin, double toMax ) : double
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : double[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, double result ) : double[]
Vector::Scale ( this values, byte fromMin, byte fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, byte fromMin, byte fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, double toMin, double toMax ) : double[]
Vector::Scale ( this values, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, double fromMin, double fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, double fromMin, double fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, float fromMin, float fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, float fromMin, float fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, int fromMin, int fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, int fromMin, int fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, long fromMin, long fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, long fromMin, long fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this values, short fromMin, short fromMax, double toMin, double toMax ) : double[]
Vector::Scale ( this values, short fromMin, short fromMax, double toMin, double toMax, double result ) : double[]
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : float
Vector::Scale ( this value, byte fromMin, byte fromMax, float toMin, float toMax ) : float
Vector::Scale ( this value, double fromMin, double fromMax, float toMin, float toMax ) : float
Vector::Scale ( this value, float fromMin, float fromMax, float toMin, float toMax ) : float
Vector::Scale ( this value, int fromMin, int fromMax, float toMin, float toMax ) : float
Vector::Scale ( this value, long fromMin, long fromMax, float toMin, float toMax ) : float
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, float toMin, float toMax ) : float
Vector::Scale ( this value, short fromMin, short fromMax, float toMin, float toMax ) : float
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : float[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, float result ) : float[]
Vector::Scale ( this values, byte fromMin, byte fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, byte fromMin, byte fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, double fromMin, double fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, double fromMin, double fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, float toMin, float toMax ) : float[]
Vector::Scale ( this values, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, float fromMin, float fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, float fromMin, float fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, int fromMin, int fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, int fromMin, int fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, long fromMin, long fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, long fromMin, long fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this values, short fromMin, short fromMax, float toMin, float toMax ) : float[]
Vector::Scale ( this values, short fromMin, short fromMax, float toMin, float toMax, float result ) : float[]
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : int
Vector::Scale ( this value, byte fromMin, byte fromMax, int toMin, int toMax ) : int
Vector::Scale ( this value, double fromMin, double fromMax, int toMin, int toMax ) : int
Vector::Scale ( this value, float fromMin, float fromMax, int toMin, int toMax ) : int
Vector::Scale ( this value, int fromMin, int fromMax, int toMin, int toMax ) : int
Vector::Scale ( this value, long fromMin, long fromMax, int toMin, int toMax ) : int
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, int toMin, int toMax ) : int
Vector::Scale ( this value, short fromMin, short fromMax, int toMin, int toMax ) : int
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : int[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, int result ) : int[]
Vector::Scale ( this values, byte fromMin, byte fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, byte fromMin, byte fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, double fromMin, double fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, double fromMin, double fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, float fromMin, float fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, float fromMin, float fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, int toMin, int toMax ) : int[]
Vector::Scale ( this values, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, int fromMin, int fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, int fromMin, int fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, long fromMin, long fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, long fromMin, long fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this values, short fromMin, short fromMax, int toMin, int toMax ) : int[]
Vector::Scale ( this values, short fromMin, short fromMax, int toMin, int toMax, int result ) : int[]
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : long
Vector::Scale ( this value, byte fromMin, byte fromMax, long toMin, long toMax ) : long
Vector::Scale ( this value, double fromMin, double fromMax, long toMin, long toMax ) : long
Vector::Scale ( this value, float fromMin, float fromMax, long toMin, long toMax ) : long
Vector::Scale ( this value, int fromMin, int fromMax, long toMin, long toMax ) : long
Vector::Scale ( this value, long fromMin, long fromMax, long toMin, long toMax ) : long
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, long toMin, long toMax ) : long
Vector::Scale ( this value, short fromMin, short fromMax, long toMin, long toMax ) : long
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : long[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, long result ) : long[]
Vector::Scale ( this values, byte fromMin, byte fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, byte fromMin, byte fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, double fromMin, double fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, double fromMin, double fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, float fromMin, float fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, float fromMin, float fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, int fromMin, int fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, int fromMin, int fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, long toMin, long toMax ) : long[]
Vector::Scale ( this values, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, long fromMin, long fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, long fromMin, long fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this values, short fromMin, short fromMax, long toMin, long toMax ) : long[]
Vector::Scale ( this values, short fromMin, short fromMax, long toMin, long toMax, long result ) : long[]
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : sbyte
Vector::Scale ( this value, byte fromMin, byte fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this value, double fromMin, double fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this value, float fromMin, float fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this value, int fromMin, int fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this value, long fromMin, long fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this value, short fromMin, short fromMax, sbyte toMin, sbyte toMax ) : sbyte
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : sbyte[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, sbyte result ) : sbyte[]
Vector::Scale ( this values, byte fromMin, byte fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, byte fromMin, byte fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, double fromMin, double fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, double fromMin, double fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, float fromMin, float fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, float fromMin, float fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, int fromMin, int fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, int fromMin, int fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, long fromMin, long fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, long fromMin, long fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this values, short fromMin, short fromMax, sbyte toMin, sbyte toMax ) : sbyte[]
Vector::Scale ( this values, short fromMin, short fromMax, sbyte toMin, sbyte toMax, sbyte result ) : sbyte[]
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, IRange fromRange, IRange toRange ) : short
Vector::Scale ( this value, byte fromMin, byte fromMax, short toMin, short toMax ) : short
Vector::Scale ( this value, double fromMin, double fromMax, short toMin, short toMax ) : short
Vector::Scale ( this value, float fromMin, float fromMax, short toMin, short toMax ) : short
Vector::Scale ( this value, int fromMin, int fromMax, short toMin, short toMax ) : short
Vector::Scale ( this value, long fromMin, long fromMax, short toMin, short toMax ) : short
Vector::Scale ( this value, sbyte fromMin, sbyte fromMax, short toMin, short toMax ) : short
Vector::Scale ( this value, short fromMin, short fromMax, short toMin, short toMax ) : short
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange ) : short[]
Vector::Scale ( this values, IRange fromRange, IRange toRange, short result ) : short[]
Vector::Scale ( this values, IRange toRange, short result ) : short[]
Vector::Scale ( this values, byte fromMin, byte fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, byte fromMin, byte fromMax, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, double fromMin, double fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, double fromMin, double fromMax, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, float fromMin, float fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, float fromMin, float fromMax, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, int fromMin, int fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, int fromMin, int fromMax, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, long fromMin, long fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, long fromMin, long fromMax, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, sbyte fromMin, sbyte fromMax, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, short toMin, short toMax ) : short[]
Vector::Scale ( this values, short toMin, short toMax, short result ) : short[]
Vector::Scale ( this values, short fromMin, short fromMax, short toMin, short toMax ) : short[]
Vector::Scale ( this values, short fromMin, short fromMax, short toMin, short toMax, short result ) : short[]

Usage Example

Beispiel #1
0
        /// <summary>
        ///   Converts an image from one representation to another.
        /// </summary>
        ///
        /// <param name="input">The input image to be converted.</param>
        /// <param name="output">The converted image.</param>
        ///
        public void Convert(UnmanagedImage input, out float[][] output)
        {
            int width     = input.Width;
            int height    = input.Height;
            int pixelSize = input.PixelSize;
            int offset    = input.Offset;

            output = new float[width * height][];

            float min = (float)Min;
            float max = (float)Max;

            unsafe
            {
                byte *src = (byte *)input.ImageData.ToPointer();
                int   dst = 0;

                for (int y = 0; y < height; y++)
                {
                    for (int x = 0; x < width; x++, dst++)
                    {
                        float[] pixel = output[dst] = new float[pixelSize];
                        for (int i = pixel.Length - 1; i >= 0; i--, src++)
                        {
                            pixel[i] = Vector.Scale(*src, (byte)0, (byte)255, min, max);
                        }
                    }
                    src += offset;
                }
            }
        }
All Usage Examples Of Accord.Math.Vector::Scale