qesuite 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -43,6 +43,7 @@ declare class ChartSettings {
43
43
  };
44
44
  title: EngFont;
45
45
  hasLegend: boolean;
46
+ legendName: string;
46
47
  type: string;
47
48
  }
48
49
  declare class DataCollection {
@@ -394,6 +395,7 @@ declare const Distributions: {
394
395
  * @returns the Right-Tailed P-Value of the F Distribution
395
396
  */
396
397
  RightTail(f: number, df1: number, df2: number): number;
398
+ TwoTail(f: number, df1: number, df2: number): number;
397
399
  };
398
400
  Gamma: {
399
401
  /**
@@ -659,6 +661,12 @@ declare const Distributions: {
659
661
  */
660
662
  RightTail(t: number, df: number): number;
661
663
  /**
664
+ * Evaluates the two-tailed probability of a random variable occuring with a value x or greater from the T-distribution with the specified degrees of freedom. (TWO TAILED T-TEST)
665
+ * @param x The value of x to evaluate the probability of the specified distribution
666
+ * @param df Degrees of Freedom
667
+ */
668
+ TwoTail(t: number, df: number): number;
669
+ /**
662
670
  * Evaluates the inverse of the T-distribution with the specified degrees of freedom
663
671
  * @param p The probability of the specified distribution
664
672
  * @param df Degrees of Freedom
@@ -840,6 +848,13 @@ declare function AverageMovingRange(data: any[], w?: number): number;
840
848
  */
841
849
  declare function Mean(data: any[]): number;
842
850
  /**
851
+ * Calculates the mean of the array supplied for data points between the percentile.
852
+ * @customfunction
853
+ * @param data An array of numbers. The numbers can be supplied as number types or strings
854
+ * @param percentile The percentage to be removed from both tails. DEFAULT 0.05 (5%-95%)
855
+ */
856
+ declare function TrimmedMean(data: any[], percentile?: number): number;
857
+ /**
843
858
  * Calculates the median of the array supplied.
844
859
  * @customfunction
845
860
  * @param data An array of numbers. The numbers can be supplied as number types or strings
@@ -865,6 +880,7 @@ declare const StDev: {
865
880
  * @param data An array of data arrays. The numbers can be supplied as number types or strings
866
881
  */
867
882
  Pooled(data: any[]): number;
883
+ PooledErr(data: any[]): number;
868
884
  /**
869
885
  * Calculates the sample standard deviation of the array supplied.
870
886
  * @customfunction
@@ -935,8 +951,21 @@ declare const HypothesisTesting: {
935
951
  };
936
952
  };
937
953
  declare const ANOVA: {
954
+ AnalysisOfMeans: {
955
+ OneWay(data: {}, name?: string, alpha?: number): {
956
+ treatments: any[];
957
+ grandMean: number;
958
+ UDL: number;
959
+ LDL: number;
960
+ chart: HTMLCanvasElement;
961
+ };
962
+ };
938
963
  OneWay: {
939
964
  Table(data: any): any;
965
+ IntervalPlot(data: any, name?: string, alpha?: any, usePooledStd?: boolean): {
966
+ table: any;
967
+ chart: HTMLCanvasElement;
968
+ };
940
969
  };
941
970
  PostHoc: {
942
971
  Duncan: {
@@ -955,6 +984,41 @@ declare const ANOVA: {
955
984
  StudentizedRangeDistribution(numberTreatments: number, df: number): number;
956
985
  };
957
986
  };
987
+ TwoWay: {
988
+ Table(factor1: any[], factor2: any[], response: any[], interaction?: boolean): any;
989
+ InteractionPlot(factor1: any[], factor2: any[], response: any[], factor1XAxis?: boolean): HTMLCanvasElement;
990
+ MainEffectsPlot(factor1: any[], factor2: any[], response: any[]): HTMLCanvasElement;
991
+ };
992
+ EqualVariance: {
993
+ /**
994
+ * Tests groups for equal variance using Levene's Method
995
+ * @param data the data to evaluate as an object divided into subgroups
996
+ * @param definition which Z definition to use: DEFAULT = Median | 1 = Mean | 2 = TrimmedMean(10%)
997
+ * @returns
998
+ */
999
+ Levene(data: any, definition?: number): {
1000
+ F: number;
1001
+ p: number;
1002
+ };
1003
+ /**
1004
+ * Tests groups for equal variance using Bartlett's Test
1005
+ * @param data the data to evaluate as an object divided into subgroups
1006
+ * @returns
1007
+ */
1008
+ Bartlett(data: any): {
1009
+ B: number;
1010
+ p: number;
1011
+ };
1012
+ /**
1013
+ * Tests groups for equal variance using F-Test
1014
+ * @param data the data to evaluate as an object divided into subgroups
1015
+ * @returns
1016
+ */
1017
+ FTest(factor1: number[], factor2: number[]): {
1018
+ F: number;
1019
+ p: number;
1020
+ };
1021
+ };
958
1022
  };
959
1023
  declare function SumSquaredDeviation(data: number[], referenceValue?: any): number;
960
1024
  declare const Probability: {
@@ -1205,4 +1269,4 @@ declare function GRRByPartChart(data: GRRData): HTMLCanvasElement;
1205
1269
  declare function GRRPartxOperatorChart(data: GRRData): HTMLCanvasElement;
1206
1270
  declare function CompileGRRObject(operators: any, parts: any, measurements: any): GRRData;
1207
1271
 
1208
- export { ANOVA, AnovaTableTwoWay, AverageMovingRange, AxisSettings, Beta, CanvasDrawSettings, Capability, Chart, ChartSettings, CompileGRRObject, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCapabilityPlot, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateControlChart, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, CustomGridline, DataCollection, DataSet, Distributions, ERF, EngFont, FixedPointIteration, G1, G1Graphs, GRR, GRRByPartChart, GRRData, GRRGraphs, GRROperator, GRRPartxOperatorChart, GRRReplication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, HypothesisTesting, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, LastObservationsChart, Line, Margin, MaximumLikelihoodParameters, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, ParameterizedCDF, Point, Probability, QQPlot, QQPlotChart, Rang, RoundTO, SerializeData, Specification, StDev, Sum, SumSquaredDeviation, UnbiasingConstant, VarianceComponents };
1272
+ export { ANOVA, AnovaTableTwoWay, AverageMovingRange, AxisSettings, Beta, CanvasDrawSettings, Capability, Chart, ChartSettings, CompileGRRObject, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCapabilityPlot, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateControlChart, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, CustomGridline, DataCollection, DataSet, Distributions, ERF, EngFont, FixedPointIteration, G1, G1Graphs, GRR, GRRByPartChart, GRRData, GRRGraphs, GRROperator, GRRPartxOperatorChart, GRRReplication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, HypothesisTesting, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, LastObservationsChart, Line, Margin, MaximumLikelihoodParameters, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, ParameterizedCDF, Point, Probability, QQPlot, QQPlotChart, Rang, RoundTO, SerializeData, Specification, StDev, Sum, SumSquaredDeviation, TrimmedMean, UnbiasingConstant, VarianceComponents };
package/dist/index.d.ts CHANGED
@@ -43,6 +43,7 @@ declare class ChartSettings {
43
43
  };
44
44
  title: EngFont;
45
45
  hasLegend: boolean;
46
+ legendName: string;
46
47
  type: string;
47
48
  }
48
49
  declare class DataCollection {
@@ -394,6 +395,7 @@ declare const Distributions: {
394
395
  * @returns the Right-Tailed P-Value of the F Distribution
395
396
  */
396
397
  RightTail(f: number, df1: number, df2: number): number;
398
+ TwoTail(f: number, df1: number, df2: number): number;
397
399
  };
398
400
  Gamma: {
399
401
  /**
@@ -659,6 +661,12 @@ declare const Distributions: {
659
661
  */
660
662
  RightTail(t: number, df: number): number;
661
663
  /**
664
+ * Evaluates the two-tailed probability of a random variable occuring with a value x or greater from the T-distribution with the specified degrees of freedom. (TWO TAILED T-TEST)
665
+ * @param x The value of x to evaluate the probability of the specified distribution
666
+ * @param df Degrees of Freedom
667
+ */
668
+ TwoTail(t: number, df: number): number;
669
+ /**
662
670
  * Evaluates the inverse of the T-distribution with the specified degrees of freedom
663
671
  * @param p The probability of the specified distribution
664
672
  * @param df Degrees of Freedom
@@ -840,6 +848,13 @@ declare function AverageMovingRange(data: any[], w?: number): number;
840
848
  */
841
849
  declare function Mean(data: any[]): number;
842
850
  /**
851
+ * Calculates the mean of the array supplied for data points between the percentile.
852
+ * @customfunction
853
+ * @param data An array of numbers. The numbers can be supplied as number types or strings
854
+ * @param percentile The percentage to be removed from both tails. DEFAULT 0.05 (5%-95%)
855
+ */
856
+ declare function TrimmedMean(data: any[], percentile?: number): number;
857
+ /**
843
858
  * Calculates the median of the array supplied.
844
859
  * @customfunction
845
860
  * @param data An array of numbers. The numbers can be supplied as number types or strings
@@ -865,6 +880,7 @@ declare const StDev: {
865
880
  * @param data An array of data arrays. The numbers can be supplied as number types or strings
866
881
  */
867
882
  Pooled(data: any[]): number;
883
+ PooledErr(data: any[]): number;
868
884
  /**
869
885
  * Calculates the sample standard deviation of the array supplied.
870
886
  * @customfunction
@@ -935,8 +951,21 @@ declare const HypothesisTesting: {
935
951
  };
936
952
  };
937
953
  declare const ANOVA: {
954
+ AnalysisOfMeans: {
955
+ OneWay(data: {}, name?: string, alpha?: number): {
956
+ treatments: any[];
957
+ grandMean: number;
958
+ UDL: number;
959
+ LDL: number;
960
+ chart: HTMLCanvasElement;
961
+ };
962
+ };
938
963
  OneWay: {
939
964
  Table(data: any): any;
965
+ IntervalPlot(data: any, name?: string, alpha?: any, usePooledStd?: boolean): {
966
+ table: any;
967
+ chart: HTMLCanvasElement;
968
+ };
940
969
  };
941
970
  PostHoc: {
942
971
  Duncan: {
@@ -955,6 +984,41 @@ declare const ANOVA: {
955
984
  StudentizedRangeDistribution(numberTreatments: number, df: number): number;
956
985
  };
957
986
  };
987
+ TwoWay: {
988
+ Table(factor1: any[], factor2: any[], response: any[], interaction?: boolean): any;
989
+ InteractionPlot(factor1: any[], factor2: any[], response: any[], factor1XAxis?: boolean): HTMLCanvasElement;
990
+ MainEffectsPlot(factor1: any[], factor2: any[], response: any[]): HTMLCanvasElement;
991
+ };
992
+ EqualVariance: {
993
+ /**
994
+ * Tests groups for equal variance using Levene's Method
995
+ * @param data the data to evaluate as an object divided into subgroups
996
+ * @param definition which Z definition to use: DEFAULT = Median | 1 = Mean | 2 = TrimmedMean(10%)
997
+ * @returns
998
+ */
999
+ Levene(data: any, definition?: number): {
1000
+ F: number;
1001
+ p: number;
1002
+ };
1003
+ /**
1004
+ * Tests groups for equal variance using Bartlett's Test
1005
+ * @param data the data to evaluate as an object divided into subgroups
1006
+ * @returns
1007
+ */
1008
+ Bartlett(data: any): {
1009
+ B: number;
1010
+ p: number;
1011
+ };
1012
+ /**
1013
+ * Tests groups for equal variance using F-Test
1014
+ * @param data the data to evaluate as an object divided into subgroups
1015
+ * @returns
1016
+ */
1017
+ FTest(factor1: number[], factor2: number[]): {
1018
+ F: number;
1019
+ p: number;
1020
+ };
1021
+ };
958
1022
  };
959
1023
  declare function SumSquaredDeviation(data: number[], referenceValue?: any): number;
960
1024
  declare const Probability: {
@@ -1205,4 +1269,4 @@ declare function GRRByPartChart(data: GRRData): HTMLCanvasElement;
1205
1269
  declare function GRRPartxOperatorChart(data: GRRData): HTMLCanvasElement;
1206
1270
  declare function CompileGRRObject(operators: any, parts: any, measurements: any): GRRData;
1207
1271
 
1208
- export { ANOVA, AnovaTableTwoWay, AverageMovingRange, AxisSettings, Beta, CanvasDrawSettings, Capability, Chart, ChartSettings, CompileGRRObject, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCapabilityPlot, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateControlChart, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, CustomGridline, DataCollection, DataSet, Distributions, ERF, EngFont, FixedPointIteration, G1, G1Graphs, GRR, GRRByPartChart, GRRData, GRRGraphs, GRROperator, GRRPartxOperatorChart, GRRReplication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, HypothesisTesting, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, LastObservationsChart, Line, Margin, MaximumLikelihoodParameters, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, ParameterizedCDF, Point, Probability, QQPlot, QQPlotChart, Rang, RoundTO, SerializeData, Specification, StDev, Sum, SumSquaredDeviation, UnbiasingConstant, VarianceComponents };
1272
+ export { ANOVA, AnovaTableTwoWay, AverageMovingRange, AxisSettings, Beta, CanvasDrawSettings, Capability, Chart, ChartSettings, CompileGRRObject, CreateBoxandWhiskerGraph, CreateCapabilityHistogram, CreateCapabilityPlot, CreateCategoricalBarGraph, CreateContinuousBarGraph, CreateControlChart, CreateScatterPlot, CreateSplitGraph, CreateStackedChart, CreateSummaryChart, CustomGridline, DataCollection, DataSet, Distributions, ERF, EngFont, FixedPointIteration, G1, G1Graphs, GRR, GRRByPartChart, GRRData, GRRGraphs, GRROperator, GRRPartxOperatorChart, GRRReplication, GageEvaluation, Gamma, GetFunctionValues, GetHistogramDataset, GoodnessOfFit, HypothesisTesting, IndividualDistributionIdentification, IndividualDistributionPlots, IndividualValuePlot, LastObservationsChart, Line, Margin, MaximumLikelihoodParameters, Mean, Median, MovingRange, MovingRangeChart, NewtonRaphson, ObjectToArray, ParameterizedCDF, Point, Probability, QQPlot, QQPlotChart, Rang, RoundTO, SerializeData, Specification, StDev, Sum, SumSquaredDeviation, TrimmedMean, UnbiasingConstant, VarianceComponents };