📘 Function-Oriented Metrics (Software Measurement)
🔹 1. Definition
Function-Oriented Metrics are software measurement techniques that evaluate software size and complexity based on the functionality delivered to the user, rather than the physical code size.
👉 In simple words:
They measure what the software does, not how many lines of code it has.
🔹 2. Key Idea ⭐
Unlike size-oriented metrics (LOC-based), function-oriented metrics focus on:
- Inputs
- Outputs
- User interactions
- Data files
- External interfaces
👉 So they are user-centric metrics.
🔹 3. Most Common Function-Oriented Metric
🔸 Function Points (FP) 📊
Function Points measure software size based on the functional requirements provided to the user.
🔹 4. Components of Function Points
Function Points are calculated using 5 components:
🔸 1. External Inputs (EI)
- Data entering the system
👉 Example: User login details
🔸 2. External Outputs (EO)
- Data leaving the system
👉 Example: Reports, invoices
🔸 3. External Inquiries (EQ)
- Requests for data without updating system
👉 Example: Searching a record
🔸 4. Internal Logical Files (ILF)
- Internal data stored in system
👉 Example: User database
🔸 5. External Interface Files (EIF)
- Data used from other systems
👉 Example: Payment gateway data
🔹 5. Function Point Formula ⭐
FP = Total Unadjusted Function Points × Value Adjustment Factor (VAF)
🔸 Step 1: Unadjusted Function Points (UFP)
UFP = Sum of all weighted EI, EO, EQ, ILF, EIF
🔸 Step 2: Value Adjustment Factor (VAF)
VAF = 0.65 + (0.01 × ΣFi)
👉 Fi = 14 general system characteristics (like performance, complexity, security)
🔹 6. Example (Simple Idea)
| Component |
Count |
| Inputs |
5 |
| Outputs |
4 |
| Queries |
3 |
| Files |
2 |
| Interfaces |
1 |
👉 These are converted into weights → FP is calculated.
🔹 7. Advantages of Function-Oriented Metrics
✔ Language independent
✔ Focus on user requirements
✔ Better for business applications
✔ Useful in early project estimation
✔ More accurate than LOC-based metrics
🔹 8. Limitations ❌
- Complex calculation
- Requires expert judgment
- Subjective weighting system
- Not suitable for very small programs
🔹 9. Function-Oriented vs Size-Oriented Metrics
| Feature |
Function-Oriented |
Size-Oriented |
| Basis |
Functionality |
Lines of Code |
| Unit |
Function Points |
LOC |
| Language dependence |
No |
Yes |
| Focus |
User requirements |
Code size |
| Accuracy |
Higher |
Lower |
🔹 10. Importance in Software Engineering
- Helps in accurate cost estimation
- Used for project planning
- Improves productivity measurement
- Helps compare different technologies fairly
🔹 11. Key Exam Points
- Based on functionality delivered
- Main metric = Function Points (FP)
- Includes EI, EO, EQ, ILF, EIF
- Independent of programming language
- Used for early estimation and planning
🔹 12. Short Summary
- Function-oriented metrics measure software based on user functionality
- The main technique is Function Point Analysis (FPA)
- It is more accurate and language-independent than LOC-based metrics
🔹 13. Quick Exam Answer (2–3 lines)
Function-oriented metrics measure software size based on the functionality delivered to the user. The most common method is Function Point Analysis, which considers inputs, outputs, inquiries, files, and interfaces to estimate software size and effort.
🔹 14. Likely Exam Questions
- Define function-oriented metrics.
- What are function points?
- List components of function point analysis.
- Differentiate between LOC and function points.
- Why are function-oriented metrics better than size-oriented metrics?
- What are EI, EO, EQ, ILF, and EIF?
- Explain the importance of function-oriented metrics.