Recognizing a combined design strategy

A vibration-reporting program receives each measurement record as several fragments. Fragments can have different lengths, and some samples are marked invalid. A fragment may contain no valid samples even when other fragments in the record contain valid data.


The report must show one root-mean-square (RMS) vibration value calculated from all valid samples in the complete record. Invalid samples must be excluded. The report must show unavailable only when the complete record contains no valid samples.


For valid sample values xix_i, the required record value is


R=∑i=1Nxi2N,R = \sqrt{\frac{\sum_{i=1}^{N} x_i^2}{N}},


where NN is the total number of valid samples in the record.


The team has these tested components:


Component

Existing behaviour

Fragment statistics

Returns the sum of squared valid samples SjS_j and valid-sample count njn_j for fragment jj. Returns (0,0)(0,0) for a fragment with no valid samples.

Legacy estimator

Uses fragment statistics, calculates each fragment's RMS, and returns the arithmetic mean of those RMS values. Returns unavailable immediately if any fragment has no valid samples.

Report formatter

Displays either a supplied numeric value or a supplied unavailable marker.


The team wants to reuse compatible components while meeting every reporting requirement. Which proposal best combines top-down and bottom-up design, with a valid justification?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Top-down and Bottom-up Design Questions: