Consultant Request: Gogue

Name: Jean-Marie Gogue

Contact Information

Phone: 33139503569

Location: Versailles France

Imagine the situation. The user has got a series of measurements, for example 11.5 - 9.2 - 14.8 … etc. He wants to draw a control chart with a series of points representing the series of measurements.

A control chart is made of 3 horizontal lines: A central line and two control lines, on both sides. By the way, the user just needs two numbers: the position of the central line and the distance of each control line to the control line. That’s all.

The Xojo developer may be French or American, never mind. On the application, English words (The French engineers can speak English)

The job is urgent.


Put a series of positive decimal numbers in an only window, one after the other, separated by semicolons. If the number is lower than 20, don’t write anything in the output. Don’t allow the number to be higher than 40.

Three windows :

  1. In the first window, the number of decimal numbers.
  2. In the second window, (Central line of the control chart) the average of the decimal numbers.
  3. In the third window, (distance between the control limits and the central limit) a value that is calculated like this :
    Set the decimal numbers in increasing order : X1 ; X2 ; … Xn
    Calculate : Y1 = X1-X2 ; Y2 = X2-X3 ; Y3 = X3-X4 ; … Yn-1 = Xn-1-Xn
    Put the n-1 results in absolute terms
    Calculate the average of the n-1 absolute terms
    Multiply the average by 2,66 : it’s the value to put in the third window.

Entrer une série de nombres décimaux positifs. Sur cette application, le nombre n de données doit être supérieur ou égal à 20 ; il doit être inférieur ou égal à 40. En continuant de remplir le graphique, on peut garder les limites de contrôle qui ont été obtenues avec 20 données Output 1) La moyenne des nombres. Ce sera la ligne centrale du graphique. 2) La distance des limites de contrôle à la ligne centrale. On la calcule ainsi : Ranger les nombres par ordre croissant X1 ; X2 ; … Xn Calculer Y1 = X1-X2 ; Y2 = X2-X3 ; Y3 = X3-X4 ; … Yn-1 = Xn-1-Xn Tout mettre en valeur absolue. Calculer la moyenne des n-1 valeurs absolues. Multiplier cette moyenne par 2,66 C’est la distance cherchée.