Multidimensional data analyzer.
Introduction: Link |
Creating A set: Link |
Manipulating A set: Link |
Solving sequences: Link |
Error Correction: Link |
FL64 operations: Link |
Advanced: Link |
//Method one. Creating a set.
var My_set = new set( 10, 20, 30 );
console.log( My_set );
//Method two. Creating a set.
var text = "77, 160, 911";
var My_set = new set( text );
console.log( My_set );
//Method two. Creating a set.
var text = "10, 20, Z, 30";
var My_set;
try { var My_set = new set( text ); }
catch( e ){ console.log("Bad Input!"); }
console.log( My_set );
//Method three. Creating a set.
var o = 7;
var values = [];
for( var i = 0; i < 10; i++)
{
o += 5;
values[i] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Changing an element.
var My_set = new set( 10, 20, 30 );
My_set[1] = 60;
console.log( My_set );
//Looping through each element in a set.
var My_set = new set( 10, 20, 30 );
for( var i = 0; i < My_set.length; i++ )
{
console.log(My_set[i]);
}
//Using array methods.
var My_set = new set( 10, 20, 30 );
My_set = My_set.reverse();
console.log(My_set);
Type | Stationary. | Rotation. |
Sequential(top half). | seq(); | seqsp(); |
Geometric(bottom half). | geo(); | geosp(); |
Complete. | gen(); | gensp(); |
//Method one. Sequencing a set.
var o = 7;
var values = [];
for( var i = 0; i < 10; i++)
{
o += 5;
values[i] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seq();
console.log( My_seq );
//Creating and running a function.
var o = 7;
var values = [];
for( var i = 0; i < 10; i++)
{
o += 5;
values[i] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seq();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//2-Dimensional set.
var o = 7;
var values = [];
for( var i1 = 0; i1 < 10; i1++)
{
o += 5;
for( var i2 = 0; i2 < i1; i2++ ){ o += 76; }
values[i1] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seq();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//3-Dimensional set.
var o = 7;
var values = [];
for( var i1 = 0; i1 < 10; i1++)
{
o += 5;
for( var i2 = 0; i2 < i1; i2++ )
{
o += 76;
for( var i3 = 0; i3 < i2; i3++ ) { o += 21; }
}
values[i1] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seq();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//4-Dimensional set.
var o = 7;
var values = [];
for( var i1 = 0; i1 < 10; i1++)
{
o += 5;
for( var i2 = 0; i2 < i1; i2++ )
{
o += 76;
for( var i3 = 0; i3 < i2; i3++ )
{
o += 21;
for( var i4 = 0; i4 < i3; i4++ ) { o += 711; }
}
}
values[i1] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seq();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Random 7-Dimensional set.
var o = Math.round(Math.random() * 1000);
var d1 = Math.round(Math.random() * 1000);
var d2 = Math.round(Math.random() * 1000);
var d3 = Math.round(Math.random() * 1000);
var d4 = Math.round(Math.random() * 1000);
var d5 = Math.round(Math.random() * 1000);
var d6 = Math.round(Math.random() * 1000);
var d7 = Math.round(Math.random() * 1000);
var values = [];
for( var i1 = 0; i1 < 10; i1++)
{
o += d1;
for( var i2 = 0; i2 < i1; i2++ )
{
o += d2;
for( var i3 = 0; i3 < i2; i3++ )
{
o += d3;
for( var i4 = 0; i4 < i3; i4++ )
{
o += d4;
for( var i5 = 0; i5 < i4; i5++ )
{
o += d5;
for( var i6 = 0; i6 < i5; i6++ )
{
o += d6;
for( var i7 = 0; i7 < i6; i7++ )
{
o += d7;
}
}
}
}
}
}
values[i1] = o;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seq();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Fibonacci seq.
var o1 = 0, o2 = 1;
var values = [];
for( var i = 0; i < 10; i++)
{
o2 = o1 + ( o1 = o2 );
values[i] = o1;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seqsp();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Multiple Fibonacci seq.
var o1 = 98, o2 = 11;
var o3 = 7, o4 = -393;
var o5 = 99, o6 = 72;
var values = [];
for( var i = 0; i < 10; i++)
{
o2 = o1 + ( o1 = o2 );
o4 = o3 + ( o3 = o4 );
o6 = o5 + ( o5 = o6 );
values[i] = o1 + o4 + o6;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seqsp();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Random 7-Dimensional set. Plus Multiple random Fibonacci.
var o = Math.round(Math.random() * 1000);
var d1 = Math.round(Math.random() * 1000);
var d2 = Math.round(Math.random() * 1000);
var d3 = Math.round(Math.random() * 1000);
var d4 = Math.round(Math.random() * 1000);
var d5 = Math.round(Math.random() * 1000);
var d6 = Math.round(Math.random() * 1000);
var d7 = Math.round(Math.random() * 1000);
var o1 = Math.round(Math.random() * 1000), o2 = Math.round(Math.random() * 1000);
var o3 = Math.round(Math.random() * 1000), o4 = Math.round(Math.random() * 1000);
var o5 = Math.round(Math.random() * 1000), o6 = Math.round(Math.random() * 1000);
var values = [];
for( var i1 = 0; i1 < 12; i1++)
{
o2 = o1 + ( o1 = o2 );
o4 = o3 + ( o3 = o4 );
o6 = o5 + ( o5 = o6 );
o += d1;
for( var i2 = 0; i2 < i1; i2++ )
{
o += d2;
for( var i3 = 0; i3 < i2; i3++ )
{
o += d3;
for( var i4 = 0; i4 < i3; i4++ )
{
o += d4;
for( var i5 = 0; i5 < i4; i5++ )
{
o += d5;
for( var i6 = 0; i6 < i5; i6++ )
{
o += d6;
for( var i7 = 0; i7 < i6; i7++ )
{
o += d7;
}
}
}
}
}
}
values[i1] = o + o1 + o4 + o6;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.seqsp();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Geometric sequence.
var o = Math.round(Math.random()*1000);
var g1 = Math.round(Math.random()*1000);
var g2 = Math.round(Math.random()*1000);
var g3 = Math.round(Math.random()*1000);
var values = [];
for( var i = 0; i < 12; i++)
{
g1 = g1 * 2;
g2 = g2 * 3;
g3 = g3 * 4;
values[i] = o + g1 + g2 + g3;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.geo();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Geometric sequence Plus multiple Fibonacci.
var o = Math.round(Math.random()*1000);
var g1 = Math.round(Math.random()*1000);
var g2 = Math.round(Math.random()*1000);
var g3 = Math.round(Math.random()*1000);
var o1 = Math.round(Math.random() * 1000), o2 = Math.round(Math.random() * 1000);
var o3 = Math.round(Math.random() * 1000), o4 = Math.round(Math.random() * 1000);
var o5 = Math.round(Math.random() * 1000), o6 = Math.round(Math.random() * 1000);
var values = [];
for( var i = 0; i < 12; i++)
{
o2 = o1 + ( o1 = o2 );
o4 = o3 + ( o3 = o4 );
o6 = o5 + ( o5 = o6 );
g1 = g1 * 2;
g2 = g2 * 3;
g3 = g3 * 4;
values[i] = o + g1 + g2 + g3 + o1 + o3 + o5;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.geosp();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Sequence everything.
var o = Math.round(Math.random()*1000);
var g1 = Math.round(Math.random()*1000);
var g2 = Math.round(Math.random()*1000);
var g3 = Math.round(Math.random()*1000);
var d1 = Math.round(Math.random() * 1000);
var d2 = Math.round(Math.random() * 1000);
var d3 = Math.round(Math.random() * 1000);
var d4 = Math.round(Math.random() * 1000);
var d5 = Math.round(Math.random() * 1000);
var d6 = Math.round(Math.random() * 1000);
var d7 = Math.round(Math.random() * 1000);
var values = [];
for( var i1 = 0; i1 < 15; i1++)
{
g1 = g1 * 2;
g2 = g2 * 3;
g3 = g3 * 4;
o += d1;
for( var i2 = 0; i2 < i1; i2++ )
{
o += d2;
for( var i3 = 0; i3 < i2; i3++ )
{
o += d3;
for( var i4 = 0; i4 < i3; i4++ )
{
o += d4;
for( var i5 = 0; i5 < i4; i5++ )
{
o += d5;
for( var i6 = 0; i6 < i5; i6++ )
{
o += d6;
for( var i7 = 0; i7 < i6; i7++ )
{
o += d7;
}
}
}
}
}
}
values[i1] = o + g1 + g2 + g3;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.gen();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Sequence everything. Plus multiple Fibonacci sequences.
var o = Math.round(Math.random() * 1000);
var g1 = Math.round(Math.random() * 1000);
var g2 = Math.round(Math.random() * 1000);
var g3 = Math.round(Math.random() * 1000);
var o1 = Math.round(Math.random() * 1000), o2 = Math.round(Math.random() * 1000);
var o3 = Math.round(Math.random() * 1000), o4 = Math.round(Math.random() * 1000);
var o5 = Math.round(Math.random() * 1000), o6 = Math.round(Math.random() * 1000);
var o7 = Math.round(Math.random() * 1000), o8 = Math.round(Math.random() * 1000);
var o9 = Math.round(Math.random() * 1000), o10 = Math.round(Math.random() * 1000);
var d1 = Math.round(Math.random() * 1000);
var d2 = Math.round(Math.random() * 1000);
var d3 = Math.round(Math.random() * 1000);
var d4 = Math.round(Math.random() * 1000);
var d5 = Math.round(Math.random() * 1000);
var d6 = Math.round(Math.random() * 1000);
var d7 = Math.round(Math.random() * 1000);
var values = [];
for( var i1 = 0; i1 < 16; i1++)
{
o2 = o1 + ( o1 = o2 );
o4 = o3 + ( o3 = o4 );
o6 = o5 + ( o5 = o6 );
o8 = o7 + ( o7 = o8 );
o10 = o9 + ( o9 = o10 );
g1 = g1 * 2;
g2 = g2 * 3;
g3 = g3 * 4;
o += d1;
for( var i2 = 0; i2 < i1; i2++ )
{
o += d2;
for( var i3 = 0; i3 < i2; i3++ )
{
o += d3;
for( var i4 = 0; i4 < i3; i4++ )
{
o += d4;
for( var i5 = 0; i5 < i4; i5++ )
{
o += d5;
for( var i6 = 0; i6 < i5; i6++ )
{
o += d6;
for( var i7 = 0; i7 < i6; i7++ )
{
o += d7;
}
}
}
}
}
}
values[i1] = o + g1 + g2 + g3 + o1 + o3 + o5 + o7 + o9;
}
//Create the set using the values.
var My_set = new set( values );
console.log( My_set );
//Sequence the set.
var My_seq = My_set.gensp();
console.log( My_seq );
//Get the function of a analyzed set.
var My_func = My_seq.getFunc();
console.log( My_func );
//Calculate values using the function.
for( var x = 0; x < 20; x++)
{
console.log( My_func( x ) );
}
//Enable error correction.
AI_Mat.ErrCorrect = true;
alert("Error correction Is now Enabled.");
//Disable error correction.
AI_Mat.ErrCorrect = false;
alert("Error correction Is now disabled.");
//Convert one floating point value to a floating point number.
var My_float = 13.02415.getFract();
console.log( My_float.toString() );
//Now lets do the same operation with a set.
var My_set = new set( 7.11, 3.14, 0.1414, 1.6080 ).getFract();
console.log( My_set );
//Convert one floating point value to a floating point number.
var My_float = 13.02415;
My_float = My_float.bits();
console.log( My_float.toString() );
//Now convert the floating point value to binary.
My_float = My_float.getFract();
console.log( My_float );
//Now lets do the same operation with a set.
var My_set = new set( 7.11, 3.14, 0.1414, 1.6080 );
My_set = My_set.bits();
console.log( My_set.toString() );
My_set = My_set.getFract();
console.log( My_set );