docstr: Tests for expected output
  
  Taken from example 3.2 in Saltelli et al. (2008) pg 122
docstr_tok: ["Tests","for","expected","output","Taken","from","example","3.2","in","Saltelli","et","al",".","(","2008",")","pg","122"]
code: def test_compute_B_star(self):
      """
      Tests for expected output
  
      Taken from example 3.2 in Saltelli et al. (2008) pg 122
      """
  
      k = 3
      g = 2
  
      x_star = np.array([[1.0 / 3, 1.0 / 3, 0.0]])
      J = np.ones((g + 1, k))
      G = np.array([[1, 0], [0, 1], [0, 1]])
      D_star = np.array([[1, 0, 0], [0, -1, 0], [0, 0, 1]])
      P_star = np.array([[1, 0], [0, 1]])
      delta = 2.0 / 3
      B = np.tril(np.ones([g + 1, g], dtype=int), -1)
  
      desired = np.array(
          [[1.0 / 3, 1, 0], [1, 1, 0], [1, 1.0 / 3, 2.0 / 3]]
      )
  
      output = _compute_b_star(J, x_star, delta, B, G, P_star, D_star)
      assert_allclose(output, desired)
  
imports: from numpy.testing import assert_equal, assert_allclose
  from pytest import raises, fixture, warns, mark
  import numpy
  import warnings
  from SALib.sample.morris.morris import sample, _check_group_membership, _check_if_num_levels_is_even, _compute_optimised_trajectories, _generate_p_star, _compute_b_star, _generate_trajectory, _generate_x_star
  from SALib.util import read_param_file, compute_groups_matrix, _define_problem_with_groups, _compute_delta
label_desc: Use image node_id 4 for calling the TestGroupSampleGeneration obj's underlying member method code with example usage: obj.test_compute_B_star() without return types